Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ZimM-LostPolygon committed Oct 1, 2023
1 parent d5f6d82 commit 237ac08
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dear_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def convert_header(
# Add headers we need and remove those we don't
if not is_backend:
mod_add_includes.apply(dom_root, ["<stdbool.h>"]) # We need stdbool.h to get bool defined
mod_add_includes.apply(dom_root, ["<stdint.h>"]) # We need cstdint to get int32_t
mod_add_includes.apply(dom_root, ["<stdint.h>"]) # We need stdint.h to get int32_t
mod_remove_includes.apply(dom_root, ["<float.h>",
"<string.h>"])

Expand Down Expand Up @@ -393,7 +393,7 @@ def convert_header(
})

if generate_exploded_varargs_functions:
mod_add_exploded_variadic_functions.apply(dom_root, 7)
mod_add_exploded_variadic_functions.apply(dom_root, 7) # 7 arguments feels reasonable? Yes.

if generate_unformatted_functions:
mod_add_unformatted_functions.apply(dom_root,
Expand Down
1 change: 0 additions & 1 deletion src/modifiers/mod_add_exploded_variadic_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
def apply(dom_root, varargs_count_limit):
any_modifications_applied = False
for function in dom_root.list_all_children_of_type(code_dom.DOMFunctionDeclaration):

has_varargs = False

for arg in function.arguments:
Expand Down
23 changes: 23 additions & 0 deletions src/templates/imgui-header-template.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

#if defined _WIN32 || defined __CYGWIN__
#ifdef CIMGUI_NO_EXPORT
#define API
#else
#define API __declspec(dllexport)
#endif
#else
#ifdef __GNUC__
#define API __attribute__((__visibility__("default")))
#else
#define API
#endif
#endif

#if defined __cplusplus
#define EXTERN extern "C"
#else
#define EXTERN extern
#endif

#define CIMGUI_API EXTERN API

0 comments on commit 237ac08

Please sign in to comment.