axmol/tools/bindings-generator/targets/lua/templates/layout_head.c

26 lines
684 B
C
Raw Normal View History

2020-10-08 22:32:07 +08:00
\#include "scripting/lua-bindings/auto/${out_file}.hpp"
#if $macro_judgement
$macro_judgement
#end if
#for header in $headers
2020-11-02 16:38:08 +08:00
#set relative = '..'
#for search_path in $search_paths
#set relative = os.path.relpath(header, $search_path)
#if not '..' in relative
#break
#end if
#end for
2020-10-08 22:32:07 +08:00
#if not '..' in relative
\#include "${relative.replace(os.path.sep, '/')}"
#else
\#include "${os.path.basename(header)}"
#end if
#end for
\#include "scripting/lua-bindings/manual/tolua_fix.h"
\#include "scripting/lua-bindings/manual/LuaBasicConversions.h"
#if $cpp_headers
#for header in $cpp_headers
\#include "${header}"
#end for
#end if