(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:
@@ -15,6 +15,8 @@
|
||||
#include "game_config.hpp"
|
||||
#include "game_info.hpp"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/* static */ GameConfig *GameConfig::GetConfig(ScriptSettingSource source)
|
||||
{
|
||||
GameConfig **config;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
#include "game_info.hpp"
|
||||
#include "game_scanner.hpp"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
|
||||
void GameScannerInfo::Initialize()
|
||||
{
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
void CDECL strgen_warning(const char *s, ...)
|
||||
{
|
||||
char buf[1024];
|
||||
|
||||
Reference in New Issue
Block a user