Results 41 to 48 of 48

Thread: StandAlone Oxygen

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #35
    Integer functions return values in the eax register. This code makes no sense:

    Function f() as Int
    {

    Dim Int result At @f
    '...
    result = 42
    }



    The standard string type is 'string' which contains a garbage-collected bstring. But you can use bstrings directly if you do your own garbage collection.


    inlimits macro function accepting all types:

    
    
    
    macro inlimits int(r,  a,min,max)
    =================================
    r=-1
    if a<min then r=0
    if a>max then r=0
    end macro
    


    PS: abs(..) requires brackets



    Last edited by Charles Pegge; 27-05-2024 at 19:48.

Similar Threads

  1. New Site for StandAlone Oxygen
    By Charles Pegge in forum O2h Compiler
    Replies: 6
    Last Post: 05-10-2010, 10:57

Members who have read this thread: 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •