doors.h 999 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef DOORS
  2. #define DOORS
  3. #ifdef NOSTUB
  4. #error "doors.h" must not be included in "nostub" mode!
  5. #undef DOORS
  6. #else
  7. #ifdef EXE_OUT
  8. #error As of now, you cannot generate EXEs in kernel mode.
  9. #endif
  10. #include <default.h>
  11. //#undef _rom_call_addr_concat
  12. //#define _rom_call_addr_concat(intindex,romindex) (&romindex)
  13. #undef _rom_call
  14. #undef _rom_call_addr
  15. #define _rom_call(t,a,i) (*((t(*__ATTR_TIOS__)a)(&_ROM_CALL_##i)))
  16. #define _rom_call_addr(i) (&_ROM_CALL_##i)
  17. #define _main() __main()
  18. /* Begin Auto-Generated Part */
  19. #define _ram_call(i,t) ((t)(&_RAM_CALL_##i))
  20. #define _ram_call_addr(i) (&_RAM_CALL_##i)
  21. /* End Auto-Generated Part */
  22. #ifdef RETURN_VALUE
  23. #define _NEED_COMPLEX_MAIN
  24. #endif
  25. #ifndef NO_EXIT_SUPPORT
  26. #define _NEED_COMPLEX_MAIN
  27. #endif
  28. #if defined (_NEED_COMPLEX_MAIN) || defined (_NEED_AMS_CHECK) || defined (_NEED_CALC_DETECT)
  29. #define NO_VSIMPLE_MAIN
  30. #endif
  31. #if defined(ENABLE_ERROR_RETURN) && defined(_NEED_COMPLEX_MAIN)
  32. #define SPECIAL_ERROR_RETURN
  33. #endif
  34. #endif
  35. #endif