Skip to content
Snippets Groups Projects
Select Git revision
  • ea13f407a392593e7746131952a57bad222ee882
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

objmap.c

Blame
  • api.h 360 B
    #ifndef _API_H
    #define _API_H
    
    #ifndef API
    #  define API(id, def) def
    #endif
    
    #define API_FOO 0x35c3
    API(API_FOO, void foo(short x, int y, char z, int w));
    
    #define API_BAR 0xc0ffee
    API(API_BAR, void bar(char*astr));
    
    typedef struct {
        int foo;
        int bar;
        int baz;
    } qux_t;
    
    #define API_QUX 0xCCC
    API(API_QUX, void qux(qux_t q));
    
    #endif /* _API_H */