From 8ad725429292be22086d51df285907742be7a91a Mon Sep 17 00:00:00 2001 From: jussi Date: Sun, 2 Jul 2023 17:44:24 +0300 Subject: LuaJIT compatibility. --- src/main.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 0064b48..4b90b08 100644 --- a/src/main.c +++ b/src/main.c @@ -9,6 +9,14 @@ inline static void printVersion() { else { TraceLog( LOG_INFO, "ReiLua %d.%d.%d", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH ); } + +#ifdef LUA_VERSION + TraceLog( LOG_INFO, "%s", LUA_VERSION ); +#endif + +#ifdef LUAJIT_VERSION + TraceLog( LOG_INFO, "%s", LUAJIT_VERSION ); +#endif } int main( int argn, const char **argc ) { @@ -21,9 +29,7 @@ int main( int argn, const char **argc ) { return 1; } else if ( strcmp( argc[1], "--help" ) == 0 || strcmp( argc[1], "-h" ) == 0 ) { - printf( -"Usage: ReiLua [Options] [Directory to main.lua or main]\nOptions:\n-h --help\tThis help\n-v --version\tShow ReiLua version\n-i --interpret\tInterpret mode [File name]\n" ); - + printf( "Usage: ReiLua [Options] [Directory to main.lua or main]\nOptions:\n-h --help\tThis help\n-v --version\tShow ReiLua version\n-i --interpret\tInterpret mode [File name]\n" ); return 1; } else if ( strcmp( argc[1], "--interpret" ) == 0 || strcmp( argc[1], "-i" ) == 0 ) { -- cgit v1.2.3