mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
39
BeefLibs/corlib/cpp/sys.cpp
Normal file
39
BeefLibs/corlib/cpp/sys.cpp
Normal file
|
@ -0,0 +1,39 @@
|
|||
// This is a test class for the debugger. This file isn't actually used or required.
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <cstring>
|
||||
#include <math.h>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
namespace Hey
|
||||
{
|
||||
namespace Dude
|
||||
{
|
||||
namespace Bro
|
||||
{
|
||||
struct Vector2
|
||||
{
|
||||
float mX;
|
||||
float mY;
|
||||
|
||||
void Write();
|
||||
float get__Length();
|
||||
};
|
||||
|
||||
void Vector2::Write()
|
||||
{
|
||||
// Debug visualizers work for C++ on
|
||||
// things like std::map and std::string
|
||||
std::map<int, std::string> testMap;
|
||||
testMap[1] = "One";
|
||||
testMap[2] = "Two";
|
||||
|
||||
// Calls back into Length property getter in Beef
|
||||
printf("X:%f Y:%f Length:%f\n", mX, mY, get__Length());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue