This repository has been archived on 2024-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
awesome-xlabs/documentation/IW4x/CODESTYLE.md

33 lines
459 B
Markdown
Raw Normal View History

2023-08-13 17:40:07 -04:00
# Code Style
```c++
namespace SomeNamespace
{
class SomeClass
{
public:
int someVariable;
static int SomeStaticVariable;
void someMethod()
{
// [...]
}
static void SomeStaticFunction()
{
// [...]
}
};
}
void Main(int argument)
{
SomeNamespace::SomeClass someObject;
someObject.someVariable = 0;
someObject.someMethod();
SomeNamespace::SomeClass::SomeStaticVariable = 0;
SomeNamespace::SomeClass::SomeStaticFunction();
}
```