Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/express/register_type.cxx

Go to the documentation of this file.
00001 // Filename: register_type.cxx
00002 // Created by:  drose (06Aug01)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "register_type.h"
00020 
00021 
00022 TypeHandle long_type_handle;
00023 TypeHandle int_type_handle;
00024 TypeHandle short_type_handle;
00025 TypeHandle char_type_handle;
00026 TypeHandle bool_type_handle;
00027 TypeHandle double_type_handle;
00028 TypeHandle float_type_handle;
00029 
00030 TypeHandle long_p_type_handle;
00031 TypeHandle int_p_type_handle;
00032 TypeHandle short_p_type_handle;
00033 TypeHandle char_p_type_handle;
00034 TypeHandle bool_p_type_handle;
00035 TypeHandle double_p_type_handle;
00036 TypeHandle float_p_type_handle;
00037 TypeHandle void_p_type_handle;
00038 
00039 void init_system_type_handles() {
00040   static bool done = false;
00041   if (!done) {
00042     done = true;
00043     register_type(long_type_handle, "long");
00044     register_type(int_type_handle, "int");
00045     register_type(short_type_handle, "short");
00046     register_type(char_type_handle, "char");
00047     register_type(bool_type_handle, "bool");
00048     register_type(double_type_handle, "double");
00049     register_type(float_type_handle, "float");
00050 
00051     register_type(int_p_type_handle, "int*");
00052     register_type(short_p_type_handle, "short*");
00053     register_type(char_p_type_handle, "char*");
00054     register_type(bool_p_type_handle, "bool*");
00055     register_type(double_p_type_handle, "double*");
00056     register_type(float_p_type_handle, "float*");
00057     register_type(void_p_type_handle, "void*");
00058   }
00059 }
00060 
00061 

Generated on Fri May 2 00:38:34 2003 for Panda by doxygen1.3