~hjd/widelands/packaging-19-repack-6

« back to all changes in this revision

Viewing changes to src/scripting/lua_globals.cc

  • Committer: Hans Joachim Desserud
  • Date: 2018-12-21 10:58:14 UTC
  • mfrom: (8935.1.10 trunk)
  • Revision ID: hans_joachim_desserud-20181221105814-9foxokgj0a7zolfj
Merged latest trunk. Should work better now that trunk is green again on Travis

Show diffs side-by-side

added added

removed removed

Lines of Context:
198
198
.. function:: pgettext(msgctxt, msgid)
199
199
 
200
200
   A wrapper for the pgettext() function, needed for allowing multiple translations of the same
201
 
string according to context.
 
201
   string according to context.
202
202
 
203
203
   :arg msgctxt: a named context for this string for disambiguation
204
204
   :type msgctxt: :class:`string`
253
253
.. function:: ticks()
254
254
 
255
255
   Returns an integer value representing the number of milliseconds since the SDL library
256
 
initialized.
 
256
   initialized.
257
257
*/
258
258
static int L_ticks(lua_State* L) {
259
259
        lua_pushinteger(L, SDL_GetTicks());