Skip to content

Commit a021328

Browse files
committed
WIP: lua wrapper generator.
1 parent 5983bd5 commit a021328

5 files changed

Lines changed: 284 additions & 75 deletions

File tree

src/bin/gomgen/generate_gom.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
#include <swig/Modules/swigmod.h>
4848
#include <swig/CParse/cparse.h>
4949

50-
5150
void generate_gom(
5251
Language* lang, const std::vector<std::string>& sources,
5352
DOH* cpps, std::ofstream& out, int argc, char** argv,
@@ -60,22 +59,6 @@ void generate_gom(
6059
Swig_process_types(top);
6160
Swig_default_allocators(top);
6261

63-
// Pre-declare all integer types, char* and bool* used in ImGui
64-
/*
65-
if(mode == GOMGEN_LUAWRAP_MODE) {
66-
OGF::ogf_declare_builtin_type<signed char>("signed char");
67-
OGF::ogf_declare_builtin_type<unsigned char>("unsigned char");
68-
OGF::ogf_declare_builtin_type<short>("short");
69-
OGF::ogf_declare_builtin_type<unsigned short>("unsigned short");
70-
OGF::ogf_declare_builtin_type<long long>("long long");
71-
OGF::ogf_declare_builtin_type<unsigned long long>("unsigned long long");
72-
OGF::ogf_declare_pointer_type<char*>("char*");
73-
OGF::ogf_declare_pointer_type<bool*>("bool*");
74-
OGF::ogf_declare_pointer_type<int*>("int*");
75-
OGF::ogf_declare_pointer_type<float*>("float*");
76-
}
77-
*/
78-
7962
if (top) {
8063
if (Swig_contract_mode_get()) {
8164
Swig_contracts(top);

0 commit comments

Comments
 (0)