Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB_Universal - Dynamic Memory System
#2
QB_SetString is unsafe. QB strings are not null-terminated. You should consider wrapping QB_SetString and adding the null-terminator at the end on the BASIC-side.

Also extern "C" and __declspec(dllexport) is really not required if you are planning to use this just as a header-only library.

You may consider "union" for the numeric types if you do not plan on using unique interger/float/ptr at the same time. That'll save some memory.

Looks good otherwise. Neat stuff.
Reply


Messages In This Thread
RE: QB_Universal - Dynamic Memory Sytem - by a740g - 01-16-2026, 09:02 AM
RE: QB_Universal - Dynamic Memory Sytem - by Petr - 01-17-2026, 12:19 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)