URL:
  <http://gna.org/patch/?1618>

                 Summary:  Scripting/API: Use specific argument error
messages
                 Project: Freeciv
            Submitted by: englabenny
            Submitted on: söndag 2010-04-11 den 23:55
                Category: None
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: englabenny
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.3.0

    _______________________________________________________

Details:

Use a wrapper of luaL_argerror to provide detailed feedback for
invalid arguments to API functions. luaL_argerror takes the name of
the called lua function from the stack.

Example:

    bad argument #1 to 'create_city' (got 'nil', 'Player' expected)

    -->  1: create_city(nil, nil, "")




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: söndag 2010-04-11 den 23:55  Name:
2010041201-Scripting-API-Use-specific-argument-error-mess.patch  Size: 27 kB 
 By: englabenny

<http://gna.org/patch/download.php?file_id=8919>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1618>

_______________________________________________
  Meddelandet skickades via/av Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to