fix twnlua :deadinside:

This commit is contained in:
veclavtalica 2025-02-14 21:07:59 +03:00
parent 927f284fda
commit bedfe0cdfb
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ set(FLAGS
)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/luabind.c
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/game.c
COMMAND ${PYTHON3} ${CMAKE_CURRENT_SOURCE_DIR}/bindgen.py $ENV{TWNROOT}/share/twn_api.json ${FLAGS} > ${CMAKE_CURRENT_SOURCE_DIR}/luabind.c
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bindgen.py $ENV{TWNROOT}/share/twn_api.json
CODEGEN

View File

@ -64,7 +64,7 @@ def from_table(typedesc, variable, indent = 0):
print('#include "twn_game_api.h"\n')
print('/* assumed to be included from game.c, where minilua.h is already present */"\n')
print('/* assumed to be included from game.c, where minilua.h is already present */\n')
bindings, used_converters = [], {}
for procedure, procedure_desc in api["procedures"].items():