Skip to content

The CONFIG_PROP section

Fredrik Hubinette edited this page Sep 4, 2019 · 8 revisions

The CONFIG_PROP section is relatively new, and a lot of config files don't use it. The purpose of the CONFIG_PROP section is to specify which class is given control of what everything does. Most of the time, this is done by simply including a file from the props directory, like this:

#ifdef CONFIG_PROP
#include "../props/detonator.h"
#endif

However, it would be perfectly fine to define your own prop class in this section and then define PROP_CLASS to be the name of your class. Learning how to do that is outside the scope of this tutorial though.

Currently, saber.h and detonator.h are the only prop files, but it is likely that there will be more in the future.

Clone this wiki locally