This document lays out some of the specifics that should be followed for Basic-V.
Though for anything not covered here please refer too link.
#include <cstdint>
namespace bv
{
enum struct MyEnum : uint64_t
{
One,
Two,
Three,
}
class MyClass
{
public:
MyEnum variableEnum;
private:
uint32_t variableInt;
public:
MyClass()
{
this->variableEnum = MyEnum::One;
this->variableInt = -1ul;
}
public void MyFunction()
{
return;
}
}
}
Should use pascal case ClassName
/ StructName
.
Should use pascal case FunctionName
.
Should use camel case variableName
.
Should use pascal case EnumName
.
Should use upper snake case DEFINE_NAME
.
Should be 4 spaces no tab charactors.