aboutsummaryrefslogtreecommitdiff
path: root/bindgen/gen_nim.py
Commit message (Collapse)AuthorAgeFilesLines
* update emscripten webgl link flagsEd Preston2024-08-141-1/+1
| | | | | USE_WEBGL2 deprecated. WebGL1 was removed from sokol 30-Apr-2023
* gen_nim.py: fix minor code gen bug related to ↵Andre Weissflog2024-07-301-1/+1
| | | | https://github.com/floooh/sokol/pull/1086
* Added support for emscripten on the nim's gen scriptNazari Gonzalez2024-07-281-3/+17
|
* replace SOKOL_GLCORE33 with SOKOL_GLCOREAndre Weissflog2024-03-101-3/+3
|
* bindgen minor code cleanupAndre Weissflog2024-02-201-4/+2
|
* Update generated Nim converter assertsgeotre2023-11-241-3/+3
|
* Update gen_nim.pygeotre2023-11-211-0/+2
|
* use addr insteadPixeller2023-06-231-2/+2
| | | | | warning:: `unsafeAddr` is a deprecated alias for `addr`, use `addr` instead.
* gen_nim.py: add new sg_load_action and sg_store_action name special casesAndre Weissflog2023-05-191-0/+2
|
* add sokol_log.h to nim bindingsAndre Weissflog2023-02-121-15/+27
|
* Fix language bindings:Andre Weissflog2022-11-031-54/+18
| | | | | - clang-14 ast-dump has changed for array types, fix works both for new and old format - start moving common helper functions into gen_util.py
* gen_nim.py: fix case warnings in nim 1.6.8Andre Weissflog2022-10-181-4/+4
|
* map SGL_NO_ERROR to SGL_ERROR_NO_ERRORAndre Weissflog2022-07-201-0/+1
|
* gen_nim.py: fix type mapping for sg_context_desc.pixel/depth_formatAndre Weissflog2022-07-191-1/+3
|
* bindings generation minor code cleanupAndre Weissflog2022-07-141-5/+5
|
* Nim bindings: remove to_Range and clean up type mappingsAndre Weissflog2022-07-021-7/+11
| | | | | | | | | - to_Range() converter removed, to easy to f*ck up and end up with corrupted memory - size_t mapping changed from Nim's uint to int (because Nim's sizeof returns int - change Range.pointer to Range.addr (looks better since it is usually used with Nim's unsafeAddr)
* nim bindings: fix reserved keyword wrapping for C functionsAndre Weissflog2022-06-261-6/+10
|
* nim bindings: clean up C to Nim type mappingsAndre Weissflog2022-06-261-5/+5
|
* nim bindings: change enum naming conventionsAndre Weissflog2022-06-251-26/+36
| | | | | | | Enum items are now prefixes instead of relying on the enum name for scoping. This was necessary because Nim's 'pure' doesn't enforce putting the enum name in front of the enum items.
* nim bindings: remove to 'const to bitfield' conversionAndre Weissflog2022-06-251-27/+3
|
* nim bindings: don't differentiate between 'cint' and 'uint32' enumsAndre Weissflog2022-06-251-8/+2
|
* nim bindings: replace Range.ptr with Range.pointer (can be used without quotes)Andre Weissflog2022-06-231-1/+2
|
* gen_nim.py: add array to quoted stringsAndre Weissflog2022-06-131-0/+1
|
* gen_nim.py: fix Windows linker options MSVC vs othersAndre Weissflog2022-06-121-3/+6
|
* Update Nim bindings generation. (#675)Andre Weissflog2022-06-121-74/+190
| | | | | | - the various array converters are now code-generated - also everything else in the manually written 'extras' source files is now code-generated - code cleanup and simplifications - also some minor code cleanup in the Zig code generator script
* gen_nim.py: generate by-value function wrappersAndre Weissflog2022-06-061-4/+34
|
* Language bindings generation cleanup round 1 (#674)Andre Weissflog2022-06-051-96/+81
|
* Language bindings: fix new allocator callbacks (#671)Andre Weissflog2022-05-301-12/+2
| | | | | | | * remove typedef indirection for allocator callback functions * language bindings: fix allocator bindings * language bindings: replace FIXMEs and ??? with actual errors
* do not use Nim bit fields for nowGustav Olsson2022-05-231-3/+3
|
* update nim bindgenGustav Olsson2022-05-181-232/+188
| | | | | | | | * follow nim code style * avoid keyword clashes * remove redundant functions * use nim bitfields for some consts * generate bindings for sokol_glue.h
* a few minor updates:Garett Bass2021-04-081-8/+5
| | | | | | * regenerated from sokol/master * src/ext renamed to src/nim * `Num` enum constants discarded
* fix Nim cstring argument typeGarett Bass2021-03-271-1/+1
|
* updated gen_x.py to use sokol_app.c, sokol_gfx.c, instead of sokol_app_gfx.cGarett Bass2021-03-271-7/+7
|
* added nim support to bindgenGarett Bass2021-02-251-0/+565