2026-03-29 14:17:11 +11:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import "swigtests/preproc"
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
if preproc.GetEndif() != 1 {
|
|
|
|
|
panic(0)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if preproc.GetDefine() != 1 {
|
|
|
|
|
panic(0)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if preproc.GetDefined() != 1 {
|
|
|
|
|
panic(0)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if 2*preproc.One != preproc.Two {
|
|
|
|
|
panic(0)
|
|
|
|
|
}
|
|
|
|
|
}
|