-
Notifications
You must be signed in to change notification settings - Fork 52
Source Code
Alex Dixon edited this page Jan 6, 2019
·
17 revisions
pmtech is split into 2 static libraries, there is a clang format for consistent style, the overall philosophy for the code is to be clean and simple.
Header files keep nice clean minimal procedural interfaces and cpp files hide the implementations, for this reason hopefully looking in the header files should be enough for code documentation.
- Minimalistic coding style.
- Data oriented.
- Shallow call stacks.
- Minimise dependencies in headers with forward declarations.
- Hide implementation in cpp files, move as much as possible inside single compilation unit.
- Prefer pure functions.
pen library contains platform specific code and abstractions for the following:
- console
- data_struct
- file_system
- hash
- input
- memory
- os
- pen_json
- pen_string
- renderer
- str_utilities
- types
- timer
- threads
put contains platform agnostic code using the abstractions provided by pen, it contains the following modules: