• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Coding efficient vJASS structs

Nice tutorial, simple enough. I like that you included the generated code, as it definitely makes the difference clear.

I'll need to reorganize it a bit before I can approve it, but this is definitely a useful tutorial, and overall the custom allocators/deallocators don't look that bad either.

EDIT: Whatever, it is organized well enough. ~Approved.
 
Last edited:
Level 31
Joined
Jul 10, 2007
Messages
6,306
->You could also directly have used allocate/deallocate instead of create/destroy.

vJASS convention is to name constructors and destructors create/destroy, not allocate/deallocate.

->The doublefree protection should not be there when having debugmode disabled.
You sure? : o

Anywho, it still spams triggers with extending >: P
 
Top