pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:1:
/* -*- c -*- || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: builtin.cmod,v 1.
256
2010/
03
/
23
12
:
24
:
01
grubba
Exp $
+
|| $Id: builtin.cmod,v 1.
257
2010/
05
/
28
18
:
13
:
46
mast
Exp $
*/ #include "global.h" #include "interpret.h" #include "svalue.h" #include "pike_macros.h" #include "object.h" #include "program.h" #include "array.h" #include "pike_error.h"
pike.git/src/builtin.cmod:3561:
flags ID_PROTECTED; { if (other->type != T_OBJECT) { pop_stack(); push_int(0); return; } push_constant_text("is_sql_null"); o_index(); }
+
+
/*! @decl string encode_json()
+
*!
+
*! Defined for use with @[Standards.JSON.encode], so that it
+
*! formats NULL as @expr{null@}.
+
*/
+
PIKEFUN string encode_json()
+
{
+
push_constant_text ("null");
}
-
+
}
/*! @endclass */ /*! @endmodule */ /*! @module ADT */