Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
lib.h File Reference
#include <stdio.h>
Include dependency graph for lib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Reg
 
struct  A
 
struct  XT< dummy >
 
struct  Init
 

Typedefs

typedef XT< 0 > X
 

Functions

const ReggetReg0 ()
 
const ReggetReg1 ()
 
const ReggetReg2 ()
 
void putReg ()
 
void init ()
 

Typedef Documentation

◆ X

typedef XT<0> X

Definition at line 50 of file lib.h.

Function Documentation

◆ getReg0()

const Reg & getReg0 ( )
inline

Definition at line 9 of file lib.h.

9{ static const Reg r(0); return r; }
const mie::Vuint & r
Definition bn.cpp:28
Definition lib.h:4

◆ getReg1()

const Reg & getReg1 ( )
inline

Definition at line 10 of file lib.h.

10{ static const Reg r(1); return r; }

◆ getReg2()

const Reg & getReg2 ( )
inline

Definition at line 11 of file lib.h.

11{ static const Reg r(2); return r; }

◆ init()

void init ( )

Definition at line 3 of file lib_test.cpp.

4{
5 static bool init = true;
6 printf("in lib_test %d\n", init);
7 if (!init) return;
8 init = false;
9 X::a.put();
10 putReg();
11}
void putReg()
Definition lib.h:17
void init()
Definition lib_test.cpp:3
LOGGING_API void printf(Category category, const char *format,...)
Definition Logging.cpp:30
void put() const
Definition lib.h:36
static A a
Definition lib.h:44
Here is the call graph for this function:
Here is the caller graph for this function:

◆ putReg()

void putReg ( )
inline

Definition at line 17 of file lib.h.

18{
19 puts("putReg");
20 printf("r0=%p, %d\n", &r0, r0.r_);
21 printf("r0=%p, %d\n", &r0, r1.r_);
22 printf("r0=%p, %d\n", &r0, r2.r_);
23}
int r_
Definition lib.h:5
Here is the caller graph for this function: