mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-17 15:54:07 +10:00
Compiler now reuses existing strings in the data, read more
If a string exists in the data, instead of being written, the function 'emitCStringToData()' will instead return the address of the match within the data section. Then, I can search the jump table for that address, and use the existing jump entry or append a new one. Fixes #168
This commit is contained in:
@@ -126,7 +126,7 @@ void Toy_bindModuleBundle(Toy_ModuleBundle* bundle, unsigned char* ptr, unsigned
|
||||
memcpy(bundle->ptr, ptr, size);
|
||||
bundle->count = size;
|
||||
|
||||
//URGENT: test this
|
||||
//TODO: test this
|
||||
int valid = validateModuleBundleHeader(bundle);
|
||||
|
||||
if (valid < 0) {
|
||||
|
||||
Reference in New Issue
Block a user