dfhack/library/include/df
Alexander Gavrilov 415cdad489 Make using new for allocating DF objects with vtables a compile-time error.
When done from plugins, it doesn't correctly initialize the vtable
because of some weird things MSVC does, so the only safe way is to
use df::allocate<df::foo>(). For consistency, it is also enforced
for code in the main library. It reveals the issue in the digging
invaders plugin, first found by warmist.

This change is linked to a modification in df-structures codegen.
2014-04-30 21:28:02 +04:00
..
custom Make using new for allocating DF objects with vtables a compile-time error. 2014-04-30 21:28:02 +04:00
.gitignore Update code to accomodate the new coord/coord2d/coord_path structs. 2012-01-19 14:30:22 +04:00