mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-14 21:41:25 -07:00
eval: support for multiple namespacified fallback token lookups, to account for the several possibilities of namespaces & nested namespaces & static class members nested inside of namespaces & namespaces within namespaces within classes within namespaces & wow C++ is very bad; also ui: temporarily disable space-to-click, as it conflicts with typing and this case is not yet well supported
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
#include <fstream>
|
||||
|
||||
namespace SomeWeirdNamespace
|
||||
namespace NS
|
||||
{
|
||||
int X = 0;
|
||||
int Y = 0;
|
||||
void Foo(void)
|
||||
static int X = 123;
|
||||
static int Y = 456;
|
||||
namespace SubNS
|
||||
{
|
||||
X = 123;
|
||||
Y = 456;
|
||||
int x = 0;
|
||||
static int X = 111;
|
||||
static int Y = 222;
|
||||
int Foo(int x, int y)
|
||||
{
|
||||
int z = x + y + X + Y + NS::X + NS::Y;
|
||||
return z;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int main()
|
||||
int main(void)
|
||||
{
|
||||
std::fstream temp;
|
||||
SomeWeirdNamespace::Foo();
|
||||
int result = NS::SubNS::Foo(5, 6);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user