commit x64 compilation from lulu cause the other branch dont seems to compile properly at home

This commit is contained in:
2026-07-17 16:08:20 +02:00
parent c0f3eeb00d
commit 0efa4ee6f7
625 changed files with 117283 additions and 4426 deletions

View File

@ -0,0 +1,29 @@
/* -----------------------------------------------------------------------------
GSFramework
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */
#include "reflection/nenum_string.h"
#include "nstring/nstring.h"
using namespace GS::Reflection;
//------------------------------------------------------------------------------
const char *Enum::toString(int v, Dict *dict)
{
for (int n = 0; dict[n].string_v; ++n)
if (dict[n].enum_v == v)
return dict[n].string_v;
return 0;
}
int Enum::fromString(const char *s, Dict *dict)
{
GS::String string_v(s);
for (int n = 0; dict[n].string_v; ++n)
if (string_v == dict[n].string_v)
return dict[n].enum_v;
return -1;
}
//------------------------------------------------------------------------------