aboutsummaryrefslogtreecommitdiff
path: root/src/tools.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* BoyscoutingBenoit Germain2024-06-141-1/+1
|
* Moved implementation of lanes.nameof in a separate fileBenoit Germain2024-05-291-10/+8
|
* Modernize serialize_requireBenoit Germain2024-05-291-0/+4
|
* DEBUGSPEW fprintf(stderr) → std::cerrBenoit Germain2024-05-221-1/+1
|
* Move InterCopyContext implementation in a separate fileBenoit Germain2024-05-131-68/+10
|
* Some code factorizationBenoit Germain2024-05-031-3/+0
|
* InterCopyContext always raises errors in a non-Keeper stateBenoit Germain2024-05-021-0/+4
|
* Progressively applying the coding rulesBenoit Germain2024-04-301-2/+3
|
* Progressively applying the coding rulesBenoit Germain2024-04-301-4/+4
|
* Function parameters L → L_Benoit Germain2024-04-291-5/+5
|
* All headers reformatted with updated clang-format settingsBenoit Germain2024-04-291-3/+0
|
* Formalize a few coding style rules, start to enforce them for constantsBenoit Germain2024-04-261-4/+4
|
* C++ migration: using KeeperState = Unique<lua_State*>Benoit Germain2024-04-241-2/+2
|
* C++ migration: split UniqueKey into UniqueKey+RegistryUniqueKeyBenoit Germain2024-04-241-4/+4
|
* some dead code elimination and other triflesBenoit Germain2024-04-161-19/+29
|
* C++ migration: more conversion to InterCopyContext. debugspew indentation is ↵Benoit Germain2024-04-161-5/+7
| | | | managed by a scope object
* C++ migration: inter-state transfer managed by a new class InterCopyContextBenoit Germain2024-04-151-1/+30
|
* C++ migration: luaG_inter_copy_* now return an enum class instead of an ↵Benoit Germain2024-04-101-9/+14
| | | | anonymous int
* C++ migration: [[nodiscard]] everywhere. still have to check all std::ignoreBenoit Germain2024-04-091-5/+5
|
* C++ migration: use strong type safety for source and destination states in ↵Benoit Germain2024-04-091-7/+7
| | | | transfer functions
* C++ migration: still more threading code cleanup. 'sudo' global moved in the ↵Benoit Germain2024-04-091-1/+1
| | | | Universe
* C++ migration: all enums are enum classBenoit Germain2024-03-291-5/+5
|
* C++ migration: refactor AllocatorDefinition and ProtectedAllocator into classesBenoit Germain2024-03-261-1/+0
|
* C++ migration: removed most typedef, removed uint_tBenoit Germain2024-03-201-8/+4
|
* C++ migration: UniqueKeyBenoit Germain2024-03-201-2/+2
|
* C++ migration: bool_t → boolBenoit Germain2024-03-201-1/+1
|
* C++ migration: buildfixesBenoit Germain2024-03-191-5/+1
| | | | Essentially, buildfixes when compiling as C++, plus properly marking public API as extern "C"
* Changed all indentations to all whitespacesBenoit Germain2022-02-071-3/+3
| | | | Tabs mess up alignment of stack contents comments, so I'm done with them.
* fix stack overflow when transfering a clonable userdata referencing itself ↵Benoit Germain2021-06-261-0/+13
| | | | through a uservalue
* correctly transfer the uservalue of a deep userdataBenoit Germain2021-06-241-8/+0
|
* Moved cancellation code in separate filesBenoit Germain2019-04-221-2/+0
|
* protect_allocator configure option is gone, long live allocator (more ↵Benoit Germain2018-11-251-0/+4
| | | | embedders-friendly)
* Internal code tweaksBenoit Germain2018-11-191-3/+8
| | | | | | * Registry access code utility macros * CONFIG_REGKEY and LOOKUP_REGKEY are now lightuserdata instead of strings * Stack checking debug macros improvements
* split linda code in a separate fileBenoit Germain2018-11-151-1/+1
|
* fix a bunch of compilation warnings (issue #157)Benoit Germain2018-11-111-1/+1
|
* fix an internal error trying to call on_state_create in a lane without any ↵Benoit Germain2018-11-031-1/+0
| | | | | | | libs loaded always duplicate the config structure in new lanes even when no libraries are initialized by the generator
* Enum buildfixBenoit Germain2018-11-021-8/+0
|
* More MinGW buildfixes (I hope)Benoit Germain2018-10-251-4/+5
|
* Fix Lanes build by reorganizing types around a bitBenoit Germain2018-10-251-31/+15
|
* Fix for deep-aware modulesBenoit Germain2017-08-011-114/+4
| | | | | | Don't crash when using a module that creates Lanes-compatible deep userdata. Added a sample deep-aware module.
* Improve LuaJIT supportBenoit Germain2017-05-101-1/+3
| | | | | | | * better LuaJIT-specific headers detection * add LuaJIT-specific libraries when known * properly raise an error when attempting to transfer a LUAT_CDATA value * some compilationg warning fixes
* preliminary Lua 5.3 supportBenoit Germain2014-12-161-1/+1
| | | | Untested, but it might just work :).
* LuaJIT auto detect FIXStepets2014-04-201-4/+6
|
* LuaJIT auto detectStepets2014-04-201-4/+5
|
* moved compatibility code in a separate fileBenoit Germain2014-04-031-25/+0
|
* Don't mutex-wrap require() more than onceBenoit Germain2014-03-191-1/+1
|
* Fixed some compilation warningsBenoit Germain2014-02-261-63/+66
|
* Multiverse compatibilityBenoit Germain2014-02-261-18/+67
| | | | | | | | | | | | | | | * bumped version to 3.9.2 * Internal rework: the whole Lanes engine now works "per universe" to allow concurrent Lanes execution in more than one embedded master state * this universe is a full userdata created in the master state, selfdestruct_gc is the __gc for this userdata * most of what was initialized only once is now per-universe * Fixed potential crashes at desinit if problems occur during keeper states initialisation * Fixed require() not always serialized properly * Raise an error instead of crashing on deep userdata prelude memory allocation failure * Added forgotten mutex desinitialisation at universe shutdown
* Lanes init crash fixBenoit Germain2014-02-181-2/+2
| | | | | | | | | | | * bumped version to 3.9.1 * keeper array is allocated with master state's alloc function instead of malloc()/free() * prevent application crash when specifying a very large number of keepers in the configuration options * removed some keeper desinit legacy dead code * any error occuring during one-time inits is raised outside the one-time mutex protected code region
* Deep userdata support improvementsBenoit Germain2014-02-171-5/+11
| | | | | | | | | | | | * bumped version to 3.9.0 * keepers now require "package", receive package.path & package.cpath, and call on_state_create() if it is a C function * changed the deep public API (improved deep idfunc signature, renamed luaG_deep_userdata to luaG_newdeepuserdata) * if an error occurs while copying a deep userdata, don't raise inside the keeper state * fixed situations where raised errors could lead to memory leaks (deep gc)