2017-01-23 06:19:43 +00:00
|
|
|
/*
|
2017-07-10 16:29:14 +00:00
|
|
|
* Mr. 4th Dimention - Allen Webster
|
|
|
|
*
|
|
|
|
* 21.01.2017
|
|
|
|
*
|
|
|
|
* Standard defines across 4coder code base.
|
|
|
|
*
|
|
|
|
*/
|
2017-01-23 06:19:43 +00:00
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
#if !defined(FTECH_DEFINES)
|
|
|
|
#define FTECH_DEFINES
|
2017-03-24 23:41:10 +00:00
|
|
|
|
2017-01-23 06:19:43 +00:00
|
|
|
#define internal static
|
|
|
|
#define local_persist static
|
|
|
|
#define global static
|
|
|
|
#define local_const static const
|
|
|
|
#define global_const static const
|
2017-06-30 01:28:34 +00:00
|
|
|
#define external extern "C"
|
2017-01-23 06:19:43 +00:00
|
|
|
|
2017-07-18 20:17:57 +00:00
|
|
|
#define FixSize(s) struct{ u8 __size_fixer__[s]; }
|
|
|
|
|
2017-01-23 06:19:43 +00:00
|
|
|
#define DrCase(PC) case PC: goto resumespot_##PC
|
|
|
|
#define DrYield(PC, n) { *S_ptr = S; S_ptr->__pc__ = PC; return(n); resumespot_##PC:; }
|
|
|
|
#define DrReturn(n) { *S_ptr = S; S_ptr->__pc__ = -1; return(n); }
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|