0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-10 22:18:54 +02:00

modules: Add example to readme.

This commit is contained in:
Jason Volk 2019-08-02 18:12:34 -07:00
parent c147c28808
commit 9563781e35

View file

@ -49,6 +49,20 @@ either in the module.
name of `IRCD_MODULE`. This is an object which will be sought by the module
loader in libircd.
```
// Example of a trivial module
ircd::mapi::header
IRCD_MODULE
{
"My Module", []
{
puts("hi\n");
}
};
```
2. Add an `_la_SOURCES` entry for your module in the appropriate place in
Makefile.am.