1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/templates/progops.h Mon Oct 24 21:18:10 2016 +0200
1.3 @@ -0,0 +1,17 @@
1.4 +/* Program type definitions. */
1.5 +
1.6 +#include "types.h"
1.7 +
1.8 +/* Common operations. */
1.9 +
1.10 +__attr __new(const __table *table, __ref cls, int size);
1.11 +__attr __invoke(__attr callable, unsigned int nkwargs, __param kwcodes[], __attr kwargs[], unsigned int nargs, __attr args[]);
1.12 +
1.13 +/* Error routines. */
1.14 +
1.15 +__attr __unbound_method(__attr args[]);
1.16 +
1.17 +/* Generic operations depending on specific program details. */
1.18 +
1.19 +void __SETDEFAULT(__ref obj, int pos, __attr value);
1.20 +__attr __GETDEFAULT(__ref obj, int pos);