2 SuperCollider real time audio synthesis system
3 Copyright (c) 2002 James McCartney. All rights reserved.
4 http://www.audiosynth.com
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 #ifndef _PYRMESSAGE_H_
23 #define _PYRMESSAGE_H_
25 #include "PyrKernel.h"
27 #define MAXKEYSLOTS 128
28 extern PyrSlot keywordstack
[MAXKEYSLOTS
];
29 extern bool gKeywordError
;
30 extern PyrMethod
**gRowTable
;
32 void initUniqueMethods();
34 void sendMessageWithKeys(VMGlobals
*g
, PyrSymbol
*selector
,
35 long numArgsPushed
, long numKeyArgsPushed
);
36 void sendMessage(VMGlobals
*g
, PyrSymbol
*selector
, long numArgsPushed
);
37 void sendSuperMessageWithKeys(VMGlobals
*g
, PyrSymbol
*selector
,
38 long numArgsPushed
, long numKeyArgsPushed
);
39 void sendSuperMessage(VMGlobals
*g
, PyrSymbol
*selector
, long numArgsPushed
);
40 void doesNotUnderstandWithKeys(VMGlobals
*g
, PyrSymbol
*selector
,
41 long numArgsPushed
, long numKeyArgsPushed
);
42 void doesNotUnderstand(VMGlobals
*g
, PyrSymbol
*selector
,
44 void returnFromBlock(VMGlobals
*g
);
45 void returnFromMethod(VMGlobals
*g
);
46 void executeMethod(VMGlobals
*g
, PyrMethod
*meth
, long numArgsPushed
);
47 void executeMethodWithKeys(VMGlobals
*g
, PyrMethod
*meth
, long allArgsPushed
,
48 long numKeyArgsPushed
);
49 int keywordFixStack(VMGlobals
*g
, PyrMethod
*meth
, PyrMethodRaw
*methraw
, long allArgsPushed
,
50 long numKeyArgsPushed
);