(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 dd84952d15
commit 2be4215f43
402 changed files with 873 additions and 1 deletions

View File

@@ -13,6 +13,8 @@
#include "countedptr.hpp"
#include "../safeguards.h"
int32 SimpleCountedObject::AddRef()
{
return ++m_ref_cnt;

View File

@@ -13,6 +13,8 @@
#include "../rail_map.h"
#include "dbg_helpers.h"
#include "../safeguards.h"
/** Trackdir & TrackdirBits short names. */
static const char * const trackdir_names[] = {
"NE", "SE", "UE", "LE", "LS", "RS", "rne", "rse",

View File

@@ -12,6 +12,8 @@
#include "../stdafx.h"
#include "getoptdata.h"
#include "../safeguards.h"
/**
* Find the next option.
* @return Function returns one