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
2023-08-13 17:58:51 -04:00

33 lines
459 B
Markdown

# 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();
}
```