This reverts commit c595e4d90ebfd63eb55430c735bb121cf690bd59. Conflicts: Source/Modules/c.cxx From: William S Fulton <wsf@fultondesigns.co.uk> git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@13033 626c5289-ae23-0410-ae9c-e8d60b6d4f22
32 lines
694 B
PHP
32 lines
694 B
PHP
<?php
|
|
|
|
require "example.php";
|
|
|
|
# ----- Object creation -----
|
|
|
|
# Print out the value of some enums
|
|
print "*** color ***";
|
|
print " RED =" . RED;
|
|
print " BLUE =" . BLUE;
|
|
print " GREEN =" . GREEN;
|
|
|
|
print "\n*** Foo::speed ***";
|
|
print " Foo_IMPULSE =" . Foo_IMPULSE;
|
|
print " Foo_WARP =" . Foo_WARP;
|
|
print " Foo_LUDICROUS =" . Foo_LUDICROUS;
|
|
|
|
print "\nTesting use of enums with functions\n";
|
|
|
|
enum_test(RED, Foo_IMPULSE);
|
|
enum_test(BLUE, Foo_WARP);
|
|
enum_test(GREEN, Foo_LUDICROUS);
|
|
enum_test(1234,5678);
|
|
|
|
print "\nTesting use of enum with class method\n";
|
|
$f = new_Foo();
|
|
|
|
Foo_enum_test($f,Foo_IMPULSE);
|
|
Foo_enum_test($f,Foo_WARP);
|
|
Foo_enum_test($f,Foo_LUDICROUS);
|
|
|
|
?>
|