- reverted most of the last commit after realizing that trying to manage constructing/destructing per variable is not going to work because it'd require some extensive exception management in the compiled VM code.

- instead add a list of SpecialInits to VMScriptFunction so this can be done transparently when setting up and popping the stack frame. The only drawback is that this requires permanent allocation of stack objects for the entire lifetime of a function but this is a relatively small tradeoff for significantly reduced maintenance work throughout.
- removed most #include "vm.h", because nearly all files already pull this in through dobject.h.
This commit is contained in:
Christoph Oelckers 2016-11-17 13:10:19 +01:00
parent 30e6e8e25f
commit d86f03e2e0
30 changed files with 55 additions and 235 deletions

View file

@ -61,7 +61,6 @@
#include "c_console.h"
#include "doomerrors.h"
#include "a_sharedglobal.h"
#include "vm.h"
#include "v_video.h"
#include "v_font.h"
#include "doomstat.h"
@ -77,7 +76,6 @@
#include "p_maputl.h"
#include "p_spec.h"
#include "templates.h"
#include "vm.h"
#include "v_text.h"
#include "thingdef.h"
#include "math/cmath.h"