00001 // Filename: test_lib.cxx 00002 // Created by: frang (15Jun00) 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 "test_lib.h" 00020 00021 int non_member1(float x, float y) { 00022 return (int)(x + y); 00023 } 00024 00025 my_class1::my_class1(void) {} 00026 00027 my_class1::my_class1(int) {} 00028 00029 my_class1::~my_class1(void) {} 00030 00031 float my_class1::method1(int x) { return (float)(x); } 00032 00033 int my_class1::method2(float x) { return (int)(x); } 00034 00035 int stupid_global; 00036 00037 #include <dconfig.h> 00038 00039 Configure(test_lib); 00040 00041 ConfigureFn(test_lib) { 00042 cerr << "In test_lib configure function!" << endl; 00043 } 00044 00045 ConfigureLibSym;