Add assert to check that the base path provided to FileUtils::makeAbsolute() is itself absolute.

This commit is contained in:
Robert Knight 2011-09-01 20:45:29 +01:00
parent 483ad4cee0
commit ea7fc49002

View file

@ -5,6 +5,7 @@
#include "Platform.h"
#include "StringUtils.h"
#include <assert.h>
#include <string.h>
#include <fstream>
#include <iostream>
@ -449,6 +450,7 @@ std::string FileUtils::makeAbsolute(const char* path, const char* basePath)
{
if (isRelative(path))
{
assert(!isRelative(basePath));
return std::string(basePath) + '/' + std::string(path);
}
else