To contribute:
- Fork the repo
- Create a new branch. Prefer names like:
feat/feature-namefix/fix-name
- Make your changes, following our code style
- Open a Pull Request
Note
Issues will not be assigned.
If you can solve an issue, just open a PR.
If you want guidance or discussion first, comment under the issue before opening a PR.
Requirements:
gcc,clang, ormsvccmake>=3.25
cmake -B build
cmake --build build
./build/cstatOn Unix system you can also use:
chmod +x build.sh run.sh clean.sh
./build.sh && ./run.sh-
Link the issue at the top (if no issue exists, create one first)
-
Provide a
Summaryof your changes (at least 2 points)
Fixes: #1
## Summary
-
-- Public functions and macros (usable in other files) use
camelCase - Internal helper functions and macros use a
_(underscore) prefix and followsnake_case - Do not forget to add comments
For every .h file we follow this structure:
/*
file_name.h
brief description
*/
#ifndef cstat_file_name_h
#define cstat_file_name_h
/* ===== MACROS ===== */
// global constants, UPPER_SNAKE_CASE
#define CONSTANT_MACRO ""
// public macros, camelCase
#define publicMacroFunction()
// internal/private macros, UPPER_SNAKE_CASE with `_` prefix
#define _HELPER_MACRO()
/* ===== FUNCTIONS ===== */
// public functions, camelCase
void sampleFunction(void);
// internal/private functions, snake_case with `_` prefix
void _sample_helper_function(void);
#endif