Skip to content

Instantly share code, notes, and snippets.

@Vbif
Vbif / file.cpp
Last active April 5, 2021 19:30
Defold - auto register enums
// test compile
typedef double lua_Number;
typedef struct {} lua_State;
void lua_pushnumber (lua_State *L, lua_Number n) {}
void lua_setfield (lua_State *L, int index, const char *k) {}
// test
#include <stdlib.h>
#include <string.h>