Blender  V2.59
node_util.h
Go to the documentation of this file.
00001 /*
00002  * $Id: node_util.h 35237 2011-02-27 20:13:22Z jesterking $
00003  *
00004  * ***** BEGIN GPL LICENSE BLOCK *****
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version. 
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software Foundation,
00018  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  *
00020  * The Original Code is Copyright (C) 2007 Blender Foundation.
00021  * All rights reserved.
00022  *
00023  * The Original Code is: all of this file.
00024  *
00025  * Contributor(s): Nathan Letwory.
00026  *
00027  * ***** END GPL LICENSE BLOCK *****
00028  */
00029 
00035 #ifndef NODE_UTIL_H_
00036 #define NODE_UTIL_H_
00037 
00038 #include "MEM_guardedalloc.h"
00039 
00040 extern void node_free_curves(struct bNode *node);
00041 extern void node_free_standard_storage(struct bNode *node);
00042 
00043 extern void node_copy_curves(struct bNode *orig_node, struct bNode *new_node);
00044 extern void node_copy_standard_storage(struct bNode *orig_node, struct bNode *new_node);
00045 
00046 const char *node_blend_label(struct bNode *node);
00047 const char *node_math_label(struct bNode *node);
00048 const char *node_vect_math_label(struct bNode *node);
00049 const char *node_filter_label(struct bNode *node);
00050 
00051 #endif
00052 
00053 // this is needed for inlining behaviour
00054 #if defined _WIN32
00055 #   define DO_INLINE __inline
00056 #elif defined (__sgi)
00057 #   define DO_INLINE
00058 #elif defined (__sun) || defined (__sun__)
00059 #   define DO_INLINE
00060 #else
00061 #   define DO_INLINE static inline
00062 #endif
00063