Update procedures
[shapes.git] / source / dispatch_void.h
blob44f9722d182416d50daf3e640c93054d5c11d3e7
1 /* This file is part of Shapes.
3 * Shapes is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * any later version.
8 * Shapes is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with Shapes. If not, see <http://www.gnu.org/licenses/>.
16 * Copyright 2008 Henrik Tidefelt
19 #define UNARYDISPATCHBASEDECL static RefCountPtr< const Lang::Value > unaryDispatch( RefCountPtr< const Lang::Value > self, const ::Shapes::Ast::UnaryExpr * op );
21 #define UNARYDISPATCHBASEIMPL \
22 RefCountPtr< const Lang::Value > \
23 Lang::Value::unaryDispatch( RefCountPtr< const Lang::Value > self, const ::Shapes::Ast::UnaryExpr * op ) \
25 return THE_VOID;\
28 #define UNARYDISPATCHDECL
30 #define UNARYDISPATCHIMPL( T )
33 #define BINARYDISPATCHBASEDECL static RefCountPtr< const Lang::Value > binaryDispatch1( RefCountPtr< const Lang::Value > self, RefCountPtr< const Lang::Value > other, const ::Shapes::Ast::BinaryInfixExpr * op );
35 #define BINARYDISPATCHBASEIMPL \
36 RefCountPtr< const Lang::Value > \
37 Lang::Value::binaryDispatch1( RefCountPtr< const Lang::Value > self, RefCountPtr< const Lang::Value > other, const ::Shapes::Ast::BinaryInfixExpr * op ) \
39 return THE_VOID;\
42 #define BINARYDISPATCHDECL
44 #define BINARYDISPATCHIMPL( Ts )