Move versioning to a static library to improve trivial build speed (bug 5997 part 9, r=ds).
This commit is contained in:
@@ -1244,7 +1244,7 @@ static void setconfig(char *root)
|
||||
|
||||
static void setcaption(void)
|
||||
{
|
||||
pc_printf("SourcePawn Compiler " SM_VERSION_STRING "\n");
|
||||
pc_printf("SourcePawn Compiler %s\n", SOURCEMOD_VERSION);
|
||||
pc_printf("Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC\n\n");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// vim: set ts=4 sw=4 tw=99 noet:
|
||||
#include <sourcemod_version.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -9,6 +8,7 @@
|
||||
#include "BaseRuntime.h"
|
||||
#include "sp_vm_engine.h"
|
||||
#include "watchdog_timer.h"
|
||||
#include <sourcemod_version.h>
|
||||
|
||||
using namespace SourcePawn;
|
||||
|
||||
@@ -152,7 +152,7 @@ const char *SourcePawnEngine2::GetEngineName()
|
||||
|
||||
const char *SourcePawnEngine2::GetVersionString()
|
||||
{
|
||||
return SM_VERSION_STRING;
|
||||
return SOURCEMOD_VERSION;
|
||||
}
|
||||
|
||||
IProfiler *SourcePawnEngine2::GetProfiler()
|
||||
|
||||
Reference in New Issue
Block a user