Skip to content

Commit

Permalink
tests: add intrinsics to tests/pp/intrinsic.bas
Browse files Browse the repository at this point in the history
  • Loading branch information
jayrm committed Feb 24, 2024
1 parent 46e308b commit e46614b
Showing 1 changed file with 94 additions and 30 deletions.
124 changes: 94 additions & 30 deletions tests/pp/intrinsic.bas
Expand Up @@ -2,102 +2,114 @@

'' Test intrinsic defines that are always defined

#ifndef __FB_DEBUG__
#ifndef __FB_DEBUG__
#error __FB_DEBUG__ not defined
#endif

#ifndef __FB_ERR__
#ifndef __FB_ERR__
#error __FB_ERR__ not defined
#endif

#ifndef __FB_MIN_VERSION__
#ifndef __FB_MIN_VERSION__
#error __FB_MIN_VERSION__ not defined
#endif

#ifndef __FB_SIGNATURE__
#ifndef __FB_SIGNATURE__
#error __FB_SIGNATURE__ not defined
#endif

#ifndef __FB_VERSION__
#ifndef __FB_VERSION__
#error __FB_VERSION__ not defined
#endif

#ifndef __FB_VER_MAJOR__
#ifndef __FB_VER_MAJOR__
#error __FB_VER_MAJOR__ not defined
#endif

#ifndef __FB_VER_MINOR__
#ifndef __FB_VER_MINOR__
#error __FB_VER_MINOR__ not defined
#endif

#ifndef __FB_VER_PATCH__
#ifndef __FB_VER_PATCH__
#error __FB_VER_PATCH__ not defined
#endif

#ifndef __FILE__
#ifndef __PATH__
#error __PATH__ not defined
#endif

#ifndef __FILE__
#error __FILE__ not defined
#endif

#ifndef __FILE_NQ__
#ifndef __FILE_NQ__
#error __FILE_NQ__ not defined
#endif

#ifndef __FUNCTION__
#ifndef __FUNCTION__
#error __FUNCTION__ not defined
#endif

#ifndef __FUNCTION_NQ__
#ifndef __FUNCTION_NQ__
#error __FUNCTION_NQ__ not defined
#endif

#ifndef __FB_MT__
#ifndef __FB_MT__
#error __FB_MT__ not defined
#endif

#ifndef __FB_OPTION_BYVAL__
#ifndef __FB_OPTION_BYVAL__
#error __FB_OPTION_BYVAL__ not defined
#endif

#ifndef __FB_OPTION_DYNAMIC__
#ifndef __FB_OPTION_DYNAMIC__
#error __FB_OPTION_DYNAMIC__ not defined
#endif

#ifndef __FB_OPTION_ESCAPE__
#ifndef __FB_OPTION_ESCAPE__
#error __FB_OPTION_ESCAPE__ not defined
#endif

#ifndef __FB_OPTION_EXPLICIT__
#ifndef __FB_OPTION_EXPLICIT__
#error __FB_OPTION_EXPLICIT__ not defined
#endif

#ifndef __FB_OPTION_PRIVATE__
#ifndef __FB_OPTION_PRIVATE__
#error __FB_OPTION_PRIVATE__ not defined
#endif

#ifndef __FB_OUT_DLL__
#ifndef __FB_OPTION_GOSUB__
#error __FB_OPTION_GOSUB__ not defined
#endif

#ifndef __FB_OUT_DLL__
#error __FB_OUT_DLL__ not defined
#endif

#ifndef __FB_OUT_EXE__
#ifndef __FB_OUT_EXE__
#error __FB_OUT_EXE__ not defined
#endif

#ifndef __FB_OUT_LIB__
#ifndef __FB_OUT_LIB__
#error __FB_OUT_LIB__ not defined
#endif

#ifndef __FB_OUT_OBJ__
#ifndef __FB_OUT_OBJ__
#error __FB_OUT_OBJ__ not defined
#endif

#ifndef __LINE__
#ifndef __LINE__
#error __LINE__ not defined
#endif

#ifndef __DATE__
#ifndef __DATE__
#error __DATE__ not defined
#endif

#ifndef __DATE_ISO__
#error __FB_LANG__ not defined
#endif

#ifndef __TIME__
#error __TIME__ not defined
#endif
Expand All @@ -106,19 +118,71 @@
#error __FB_GUI__ not defined
#endif

#ifndef __FB_BUILD_DATE__
#error __FB_BUILD_DATE__ not defined
#endif

#ifndef __FB_BUILD_DATE_ISO__
#error __FB_BUILD_DATE_ISO__ not defined
#endif

#ifndef __FB_BUILD_FORK_ID__
#error __FB_BUILD_FORK_ID__ not defined
#endif

#ifndef __FB_GCC__
#error __FB_GCC__ not defined
#endif

#ifndef __FB_BACKEND__
#error __FB_BACKEND__ not defined
#endif

#ifndef __FB_FPU__
#error __FB_FPU__ not defined
#endif

#ifndef __FB_FPMODE__
#error __FB_FPMODE__ not defined
#endif

#ifndef __FB_OPTIMIZE__
#error __FB_OPTIMIZE__ not defined
#endif

'' Always defined for this test

#ifndef __FB_LANG__
#error __FB_LANG__ not defined
#endif


'' May or may not be defined. Not tested here

' __FB_WIN32__
' __FB_DOS__
' __FB_LINUX__
'' Depends on compiler output. Not tested.
' __FB_MAIN__

'' Depends on makefile options. Not tested.
' __FB_BUILD_SHA1__

'' Depends on target. Not tested.
' __FB_WIN32__
' __FB_LINUX__
' __FB_DOS__
' __FB_CYGWIN__
' __FB_FREEBSD__
' __FB_NETBSD__
' __FB_OPENBSD__
' __FB_DARWIN__
' __FB_DRAGONFLY__
' __FB_SOLARIS__
' __FB_XBOX__
' __FB_BIGENDIAN__
' __FB_PCOS__
' __FB_UNIX__
' __FB_64BIT__
' __FB_ARM__
' __FB_PPC__
' __FB_X86__
' __FB_JS__
' __FB_ANDROID__
' __FB_ASM__
' __FB_SSE__
' __FB_VECTORIZE__

0 comments on commit e46614b

Please sign in to comment.