Results 1 to 10 of 13

Thread: Add new function to libcod on windows

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    How do you call your function in cod2?

    Like this
    PHP Code:
    foo("1.1.1.1"28962); 
    PHP Code:
    int port;
    char *srt;

    if ( ! 
    stackGetParams("si", &srt, &port)) { // fetches first parameter as int, 2nd as string
        
    stackPushUndefined();
        return;


  2. The Following User Says Thank You to Mitch For This Useful Post:

    Kantin (9th January 2015)

Posting Permissions

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