nforce.device: Use AROS_UFIx() macros
[AROS.git] / tools / genmodule / dtsupport.c
blob6ff9253016492ef8051d5cd662ebaae1b9c53c9a
1 /*
2 Copyright © 1995-2005, The AROS Development Team. All rights reserved.
3 $Id$
5 Functions to support datatypes. Part of genmodule.
6 */
7 #include <stdio.h>
9 #include "genmodule.h"
11 void writeobtainengine(FILE *out, struct config *cfg)
13 fprintf
15 out,
16 "\n"
17 "/* ObtainEngine function */\n"
18 "/* ===================== */\n"
19 "\n"
20 "AROS_LH0(struct IClass *, ObtainEngine,\n"
21 " LIBBASETYPEPTR, base, 5, %s\n"
22 ")\n"
23 "{\n"
24 " AROS_LIBFUNC_INIT\n"
25 "\n"
26 " return GM_CLASSPTR_FIELD(base);\n"
27 "\n"
28 " AROS_LIBFUNC_EXIT\n"
29 "}\n",
30 cfg->basename