Blame view

tests/test1.nim 279 Bytes
f149dc12   Andreas Rumpf   first somewhat wo...
1
2
3
4
5
6
7
8
  
  import squeaknim
  
  type
    MyFloat = float32
    Vector3 = object
      x, y, z: MyFloat
  
032258fd   Andreas Rumpf   various improvements
9
  setModulename "urhonimo", "UR"
f149dc12   Andreas Rumpf   first somewhat wo...
10
  
032258fd   Andreas Rumpf   various improvements
11
  wrapObject(Vector3)
f149dc12   Andreas Rumpf   first somewhat wo...
12
13
14
  
  writeExternalLibrary()
  
032258fd   Andreas Rumpf   various improvements
15
  proc foo(a, b: Vector3): cstring {.exportSt: "bar".} =
f149dc12   Andreas Rumpf   first somewhat wo...
16
17
18
    result = "some string here"
  
  writeSmallTalkCode("test1.st")