#if C
B4R::Object returnvalue;
B4R::Object* somesub(B4R::Object* o) {
return returnvalue.wrapNumber(o->toLong());
}
#end if
Private Sub AppStart
Serial1.Initialize(115200)
Log(CRLF, ">>>>>>>>>>>>>>>>>>>AppStart<<<<<<<<<<<<<<<<<<<<<<<")
Dim t As Boolean = RunNative("somesub", False)
Log("Boolean = ", t)
Dim u As Boolean = RunNative("somesub", True)
Log("Boolean = ", u)
Dim v As Byte= RunNative("somesub", 3)
Log("Byte = ", v)
Dim w As Int = RunNative("somesub", 4)
Log("Int = ", w)
Dim x As Long = RunNative("somesub", 5)
Log("Long = ", x)
Dim y As Double = RunNative("somesub", 6)
Log("Double = ", y)
Dim z As Float = RunNative("somesub", 7)
Log("Float = ", z)
end sub
Log
----
Boolean = 0
Boolean = 1
Byte = 3
Int = 4
Long = 5
Double = 6
Float = 7