ACS: include libraries headers before any game headers

This commit is contained in:
James R 2023-02-22 02:34:16 -08:00
parent d959ac9954
commit 3e9b2e45e5
7 changed files with 70 additions and 70 deletions

View file

@ -11,6 +11,17 @@
/// \file call-funcs.cpp
/// \brief Action Code Script: CallFunc instructions
#include <ACSVM/Code.hpp>
#include <ACSVM/CodeData.hpp>
#include <ACSVM/Environment.hpp>
#include <ACSVM/Error.hpp>
#include <ACSVM/Module.hpp>
#include <ACSVM/Scope.hpp>
#include <ACSVM/Script.hpp>
#include <ACSVM/Serial.hpp>
#include <ACSVM/Thread.hpp>
#include <Util/Floats.hpp>
extern "C" {
#include "../doomtype.h"
#include "../doomdef.h"
@ -38,17 +49,6 @@ extern "C" {
#include "../k_battle.h"
}
#include <ACSVM/Code.hpp>
#include <ACSVM/CodeData.hpp>
#include <ACSVM/Environment.hpp>
#include <ACSVM/Error.hpp>
#include <ACSVM/Module.hpp>
#include <ACSVM/Scope.hpp>
#include <ACSVM/Script.hpp>
#include <ACSVM/Serial.hpp>
#include <ACSVM/Thread.hpp>
#include <Util/Floats.hpp>
#include "call-funcs.hpp"
#include "environment.hpp"

View file

@ -11,6 +11,17 @@
/// \file environment.cpp
/// \brief Action Code Script: Environment definition
#include <ACSVM/Code.hpp>
#include <ACSVM/CodeData.hpp>
#include <ACSVM/Environment.hpp>
#include <ACSVM/Error.hpp>
#include <ACSVM/Module.hpp>
#include <ACSVM/Scope.hpp>
#include <ACSVM/Script.hpp>
#include <ACSVM/Serial.hpp>
#include <ACSVM/Thread.hpp>
#include <Util/Floats.hpp>
extern "C" {
#include "../doomtype.h"
#include "../doomdef.h"
@ -24,17 +35,6 @@ extern "C" {
#include "../z_zone.h"
}
#include <ACSVM/Code.hpp>
#include <ACSVM/CodeData.hpp>
#include <ACSVM/Environment.hpp>
#include <ACSVM/Error.hpp>
#include <ACSVM/Module.hpp>
#include <ACSVM/Scope.hpp>
#include <ACSVM/Script.hpp>
#include <ACSVM/Serial.hpp>
#include <ACSVM/Thread.hpp>
#include <Util/Floats.hpp>
#include "environment.hpp"
#include "thread.hpp"
#include "call-funcs.hpp"

View file

@ -11,19 +11,6 @@
/// \file interface.cpp
/// \brief Action Code Script: Interface for the rest of SRB2's game logic
extern "C" {
#include "interface.h"
#include "../doomtype.h"
#include "../doomdef.h"
#include "../doomstat.h"
#include "../r_defs.h"
#include "../g_game.h"
#include "../i_system.h"
#include "../p_saveg.h"
}
#include <cmath>
#include <memory>
@ -39,6 +26,19 @@ extern "C" {
#include <ACSVM/Thread.hpp>
#include <Util/Floats.hpp>
extern "C" {
#include "interface.h"
#include "../doomtype.h"
#include "../doomdef.h"
#include "../doomstat.h"
#include "../r_defs.h"
#include "../g_game.h"
#include "../i_system.h"
#include "../p_saveg.h"
}
#include "environment.hpp"
#include "thread.hpp"
#include "stream.hpp"

View file

@ -14,6 +14,10 @@
// TODO? Maybe untie this file from ACS?
#include <istream>
#include <ostream>
#include <streambuf>
extern "C" {
#include "../doomtype.h"
#include "../doomdef.h"
@ -25,10 +29,6 @@ extern "C" {
#include "stream.hpp"
#include "../cxxutil.hpp"
#include <istream>
#include <ostream>
#include <streambuf>
using namespace srb2::acs;
SaveBuffer::SaveBuffer(savebuffer_t *save_) :

View file

@ -17,12 +17,9 @@
#ifndef __SRB2_ACS_STREAM_HPP__
#define __SRB2_ACS_STREAM_HPP__
extern "C" {
#include "../doomtype.h"
#include "../doomdef.h"
#include "../doomstat.h"
#include "../p_saveg.h"
}
#include <istream>
#include <ostream>
#include <streambuf>
#include <ACSVM/Code.hpp>
#include <ACSVM/CodeData.hpp>
@ -35,9 +32,12 @@ extern "C" {
#include <ACSVM/Thread.hpp>
#include <Util/Floats.hpp>
#include <istream>
#include <ostream>
#include <streambuf>
extern "C" {
#include "../doomtype.h"
#include "../doomdef.h"
#include "../doomstat.h"
#include "../p_saveg.h"
}
namespace srb2::acs {

View file

@ -11,6 +11,18 @@
/// \file thread.cpp
/// \brief Action Code Script: Thread definition
#include <ACSVM/Code.hpp>
#include <ACSVM/CodeData.hpp>
#include <ACSVM/Environment.hpp>
#include <ACSVM/Error.hpp>
#include <ACSVM/Module.hpp>
#include <ACSVM/Scope.hpp>
#include <ACSVM/Script.hpp>
#include <ACSVM/Serial.hpp>
#include <ACSVM/Thread.hpp>
#include <ACSVM/BinaryIO.hpp>
#include <Util/Floats.hpp>
#include "thread.hpp"
extern "C" {
@ -26,18 +38,6 @@ extern "C" {
#include "../p_polyobj.h"
}
#include <ACSVM/Code.hpp>
#include <ACSVM/CodeData.hpp>
#include <ACSVM/Environment.hpp>
#include <ACSVM/Error.hpp>
#include <ACSVM/Module.hpp>
#include <ACSVM/Scope.hpp>
#include <ACSVM/Script.hpp>
#include <ACSVM/Serial.hpp>
#include <ACSVM/Thread.hpp>
#include <ACSVM/BinaryIO.hpp>
#include <Util/Floats.hpp>
using namespace srb2::acs;
void Thread::start(

View file

@ -14,16 +14,6 @@
#ifndef __SRB2_ACS_THREAD_HPP__
#define __SRB2_ACS_THREAD_HPP__
extern "C" {
#include "../doomtype.h"
#include "../doomdef.h"
#include "../doomstat.h"
#include "../p_tick.h"
#include "../r_defs.h"
#include "../r_state.h"
#include "../p_spec.h"
}
#include <ACSVM/Code.hpp>
#include <ACSVM/CodeData.hpp>
#include <ACSVM/Environment.hpp>
@ -35,6 +25,16 @@ extern "C" {
#include <ACSVM/Thread.hpp>
#include <Util/Floats.hpp>
extern "C" {
#include "../doomtype.h"
#include "../doomdef.h"
#include "../doomstat.h"
#include "../p_tick.h"
#include "../r_defs.h"
#include "../r_state.h"
#include "../p_spec.h"
}
namespace srb2::acs {