post in cpp and h files if it is generated with internal api

This commit is contained in:
Victor Bombi
2020-04-14 17:37:22 +02:00
parent 7224084284
commit df7c5d1b5d
5 changed files with 8 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
//based on imgui.h file version "1.76" from Dear ImGui https://github.com/ocornut/imgui //based on imgui.h file version "1.76" from Dear ImGui https://github.com/ocornut/imgui
//with imgui_internal.h api
#include "./imgui/imgui.h" #include "./imgui/imgui.h"
#include "./imgui/imgui_internal.h" #include "./imgui/imgui_internal.h"

View File

@@ -1,5 +1,6 @@
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
//based on imgui.h file version "1.76" from Dear ImGui https://github.com/ocornut/imgui //based on imgui.h file version "1.76" from Dear ImGui https://github.com/ocornut/imgui
//with imgui_internal.h api
#ifndef CIMGUI_INCLUDED #ifndef CIMGUI_INCLUDED
#define CIMGUI_INCLUDED #define CIMGUI_INCLUDED
#include <stdio.h> #include <stdio.h>

View File

@@ -415,6 +415,10 @@ while true do
end end
pipe:close() pipe:close()
cimgui_header = cimgui_header:gsub("XXX",imgui_version) cimgui_header = cimgui_header:gsub("XXX",imgui_version)
if INTERNAL_GENERATION then
cimgui_header = cimgui_header..[[//with imgui_internal.h api
]]
end
print("IMGUI_VERSION",imgui_version) print("IMGUI_VERSION",imgui_version)
--get some defines---------------------------- --get some defines----------------------------
gdefines = get_defines{"IMGUI_VERSION","FLT_MAX"} gdefines = get_defines{"IMGUI_VERSION","FLT_MAX"}

View File

@@ -1,5 +1,6 @@
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
//based on imgui.h file version "1.76" from Dear ImGui https://github.com/ocornut/imgui //based on imgui.h file version "1.76" from Dear ImGui https://github.com/ocornut/imgui
//with imgui_internal.h api
#include "./imgui/imgui.h" #include "./imgui/imgui.h"
#include "./imgui/imgui_internal.h" #include "./imgui/imgui_internal.h"

View File

@@ -1,5 +1,6 @@
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
//based on imgui.h file version "1.76" from Dear ImGui https://github.com/ocornut/imgui //based on imgui.h file version "1.76" from Dear ImGui https://github.com/ocornut/imgui
//with imgui_internal.h api
#ifndef CIMGUI_INCLUDED #ifndef CIMGUI_INCLUDED
#define CIMGUI_INCLUDED #define CIMGUI_INCLUDED
#include <stdio.h> #include <stdio.h>