Tcl patches. Use [info sharedlibextension] to get file extension rather than hard-coding it]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
445625dc0a
commit
f50eac41ce
25 changed files with 39 additions and 116 deletions
|
|
@ -1,14 +1,8 @@
|
|||
# Primitive ref testcase. Tests to make sure references to
|
||||
# primitive types are passed by value
|
||||
|
||||
if { [ string match $tcl_platform(platform) "windows" ] == 1 } {
|
||||
if [ catch { load ./primitive_ref.dll primitive_ref} err_msg ] {
|
||||
puts stderr "Could not load dll:\n$err_msg"
|
||||
}
|
||||
} else {
|
||||
if [ catch { load ./primitive_ref.so primitive_ref} err_msg ] {
|
||||
puts stderr "Could not load shared object:\n$err_msg"
|
||||
}
|
||||
if [ catch { load ./primitive_ref[info sharedlibextension] primitive_ref} err_msg ] {
|
||||
puts stderr "Could not load shared object:\n$err_msg"
|
||||
}
|
||||
|
||||
if { [ref_int 3] != 3 } { puts stderr "ref_int failed" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue