Ceebox / cbEngine

A small, experimental 64x64 pixel based game engine.
MIT License
36 stars 5 forks source link

Typedefs for function pointers #7

Open gruelingpine185 opened 1 year ago

gruelingpine185 commented 1 year ago

C and C++ have a typedef keyword that allows us to assign identifiers to function pointers and types. That means whenever a function declaration may go from void (*StartFn) () to for example, std::vector<const char*>::iterator (*Start) (), only the typedef has to be changed. Not the references that use it. This saves both time and effort.