File: macro.h

package info (click to toggle)
yforth 0.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 396 kB
  • ctags: 788
  • sloc: ansic: 4,426; makefile: 23
file content (15 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#if defined DECLARE_WORDS
	#ifdef code
	#	undef code
	#endif
	#ifdef variable
	#	undef variable
	#endif
	#define code(name, cname, class)    { cname, _##name, A_PRIMITIVE | class },
	#define variable(type, name, cname) { cname, (void (*)(void)) &_##name, A_USER },
#elif defined PROTOTYPES
    #define code(name, cname, class)    void _##name(void);
	#define variable(type, name, cname) extern type _##name;
#endif