You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
438 B
C

#include <stdlib.h>
#include <stdio.h>
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
#include "plugin.h"
#include "moon_dlfix.h"
int plugin_main( void ) {
lua_State* L = luaL_newstate();
luaL_openlibs( L );
#if 0
MOON_DLFIX();
#endif
if( luaL_dofile( L, "test.lua" ) ) {
fprintf( stderr, "%s\n", lua_tostring( L, 1 ) );
lua_close( L );
return EXIT_FAILURE;
}
lua_close( L );
return EXIT_SUCCESS;
}