(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values

This commit is contained in:
rubidium
2014-04-23 20:13:33 +00:00
parent 287ecd1582
commit 0463dbdc9e
402 changed files with 873 additions and 1 deletions

View File

@@ -15,6 +15,8 @@
#include "game_config.hpp"
#include "game_info.hpp"
#include "../safeguards.h"
/* static */ GameConfig *GameConfig::GetConfig(ScriptSettingSource source)
{
GameConfig **config;

View File

@@ -21,6 +21,8 @@
#include "game_instance.hpp"
#include "game_info.hpp"
#include "../safeguards.h"
/* static */ uint Game::frame_counter = 0;
/* static */ GameInfo *Game::info = NULL;
/* static */ GameInstance *Game::instance = NULL;

View File

@@ -16,6 +16,8 @@
#include "game_scanner.hpp"
#include "../debug.h"
#include "../safeguards.h"
/**
* Check if the API version provided by the Game is supported.
* @param api_version The API version as provided by the Game.

View File

@@ -85,6 +85,8 @@
#include "../script/api/game/game_waypointlist.hpp.sq"
#include "../script/api/game/game_window.hpp.sq"
#include "../safeguards.h"
GameInstance::GameInstance() :
ScriptInstance("GS")

View File

@@ -15,6 +15,8 @@
#include "game_info.hpp"
#include "game_scanner.hpp"
#include "../safeguards.h"
void GameScannerInfo::Initialize()
{

View File

@@ -24,6 +24,8 @@
#include <stdarg.h>
#include "../safeguards.h"
void CDECL strgen_warning(const char *s, ...)
{
char buf[1024];