Kiwisolver_xsgen.cc

filter: Statementstmt 63.0% 539 / 855 Branchbran 33.6% 199 / 592 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 51.0% 738 / 1447 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Solver.xsi ↑ Summary Strength.xsi »
1 /*
2 * This file was generated automatically by XS::Install::FrozenShit::ParseXS version 3.57 from the
3 * contents of Kiwisolver.xs. Do not edit this file, edit Kiwisolver.xs instead.
4 *
5 * ANY CHANGES MADE HERE WILL BE LOST!
6 *
7 */
8  
9 #line 1 "Kiwisolver.xs"
10 #include <xs.h>
11 using namespace xs;
12  
13 #include <kiwi/kiwi.h>
14  
15 #include "Refcnt.xsi"
16  
17 #line 18 "Kiwisolver_xsgen.cc"
18 #ifndef PERL_UNUSED_VAR
19 # define PERL_UNUSED_VAR(var) if (0) var = var
20 #endif
21  
22 #ifndef dVAR
23 # define dVAR dNOOP
24 #endif
25  
26  
27 /* This stuff is not part of the API! You have been warned. */
28 #ifndef PERL_VERSION_DECIMAL
29 # define PERL_VERSION_DECIMAL(r,v,s) (r*1000000 + v*1000 + s)
30 #endif
31 #ifndef PERL_DECIMAL_VERSION
32 # define PERL_DECIMAL_VERSION \
33 PERL_VERSION_DECIMAL(PERL_REVISION,PERL_VERSION,PERL_SUBVERSION)
34 #endif
35 #ifndef PERL_VERSION_GE
36 # define PERL_VERSION_GE(r,v,s) \
37 (PERL_DECIMAL_VERSION >= PERL_VERSION_DECIMAL(r,v,s))
38 #endif
39 #ifndef PERL_VERSION_LE
40 # define PERL_VERSION_LE(r,v,s) \
41 (PERL_DECIMAL_VERSION <= PERL_VERSION_DECIMAL(r,v,s))
42 #endif
43  
44 /* XS_INTERNAL is the explicit static-linkage variant of the default
45 * XS macro.
46 *
47 * XS_EXTERNAL is the same as XS_INTERNAL except it does not include
48 * "STATIC", ie. it exports XSUB symbols. You probably don't want that
49 * for anything but the BOOT XSUB.
50 *
51 * See XSUB.h in core!
52 */
53  
54  
55 /* TODO: This might be compatible further back than 5.10.0. */
56 #if PERL_VERSION_GE(5, 10, 0) && PERL_VERSION_LE(5, 15, 1)
57 # undef XS_EXTERNAL
58 # undef XS_INTERNAL
59 # if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
60 # define XS_EXTERNAL(name) __declspec(dllexport) XSPROTO(name)
61 # define XS_INTERNAL(name) STATIC XSPROTO(name)
62 # endif
63 # if defined(__SYMBIAN32__)
64 # define XS_EXTERNAL(name) EXPORT_C XSPROTO(name)
65 # define XS_INTERNAL(name) EXPORT_C STATIC XSPROTO(name)
66 # endif
67 # ifndef XS_EXTERNAL
68 # if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
69 # define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
70 # define XS_INTERNAL(name) STATIC void name(pTHX_ CV* cv __attribute__unused__)
71 # else
72 # ifdef __cplusplus
73 # define XS_EXTERNAL(name) extern "C" XSPROTO(name)
74 # define XS_INTERNAL(name) static XSPROTO(name)
75 # else
76 # define XS_EXTERNAL(name) XSPROTO(name)
77 # define XS_INTERNAL(name) STATIC XSPROTO(name)
78 # endif
79 # endif
80 # endif
81 #endif
82  
83 /* perl >= 5.10.0 && perl <= 5.15.1 */
84  
85  
86 /* The XS_EXTERNAL macro is used for functions that must not be static
87 * like the boot XSUB of a module. If perl didn't have an XS_EXTERNAL
88 * macro defined, the best we can do is assume XS is the same.
89 * Dito for XS_INTERNAL.
90 */
91 #ifndef XS_EXTERNAL
92 # define XS_EXTERNAL(name) XS(name)
93 #endif
94 #ifndef XS_INTERNAL
95 # define XS_INTERNAL(name) XS(name)
96 #endif
97  
98 /* Now, finally, after all this mess, we want an XS::Install::FrozenShit::ParseXS
99 * internal macro that we're free to redefine for varying linkage due
100 * to the EXPORT_XSUB_SYMBOLS XS keyword. This is internal, use
101 * XS_EXTERNAL(name) or XS_INTERNAL(name) in your code if you need to!
102 */
103  
104 #undef XS_EUPXS
105 #if defined(PERL_EUPXS_ALWAYS_EXPORT)
106 # define XS_EUPXS(name) XS_EXTERNAL(name)
107 #else
108 /* default to internal */
109 # define XS_EUPXS(name) XS_INTERNAL(name)
110 #endif
111  
112 #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
113 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
114  
115 /* prototype to pass -Wmissing-prototypes */
116 STATIC void
117 S_croak_xs_usage(const CV *const cv, const char *const params);
118  
119 STATIC void
120 S_croak_xs_usage(const CV *const cv, const char *const params)
121 {
122 const GV *const gv = CvGV(cv);
123  
124 PERL_ARGS_ASSERT_CROAK_XS_USAGE;
125  
126 if (gv) {
127 const char *const gvname = GvNAME(gv);
128 const HV *const stash = GvSTASH(gv);
129 const char *const hvname = stash ? HvNAME(stash) : NULL;
130  
131 if (hvname)
132 Perl_croak_nocontext("Usage: %s::%s(%s)", hvname, gvname, params);
133 else
134 Perl_croak_nocontext("Usage: %s(%s)", gvname, params);
135 } else {
136 /* Pants. I don't think that it should be possible to get here. */
137 Perl_croak_nocontext("Usage: CODE(0x%" UVxf ")(%s)", PTR2UV(cv), params);
138 }
139 }
140 #undef PERL_ARGS_ASSERT_CROAK_XS_USAGE
141  
142 #define croak_xs_usage S_croak_xs_usage
143  
144 #endif
145  
146 /* NOTE: the prototype of newXSproto() is different in versions of perls,
147 * so we define a portable version of newXSproto()
148 */
149 #ifdef newXS_flags
150 #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
151 #else
152 #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
153 #endif /* !defined(newXS_flags) */
154  
155 #if PERL_VERSION_LE(5, 21, 5)
156 # define newXS_deffile(a,b) Perl_newXS(aTHX_ a,b,file)
157 #else
158 # define newXS_deffile(a,b) Perl_newXS_deffile(aTHX_ a,b)
159 #endif
160  
161 /* simple backcompat versions of the TARGx() macros with no optimisation */
162 #ifndef TARGi
163 # define TARGi(iv, do_taint) sv_setiv_mg(TARG, iv)
164 # define TARGu(uv, do_taint) sv_setuv_mg(TARG, uv)
165 # define TARGn(nv, do_taint) sv_setnv_mg(TARG, nv)
166 #endif
167  
168 #line 169 "Kiwisolver_xsgen.cc"
169  
170 /* INCLUDE: Including 'Variable.xsi' from 'Kiwisolver.xs' */
171  
172 #include <xs.h>
173 #include <kiwi/kiwi.h>
174 namespace xs {
175 template <>
176 struct Typemap<kiwi::Variable*> : TypemapObject<kiwi::Variable*, kiwi::Variable*, ObjectTypeRefcntPtr, ObjectStorageMG, StaticCast> {
177 6 ▶ static std::string package () { return "Graphics::Layout::Kiwisolver::Variable"; }
Branch: 1 branch
BranchTrueFalseTotal
static std::string package () { return "Graphics::Layout::Kiwisolver::Variable"; } 2 0 2
178 };
179 }
180  
181  
182 4994 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_new) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_new) { xs::throw_guard(cv, [=]() 2497 0 2497
183 {
184 2497 dVAR; dXSARGS;
185 2497 ▶ if (items < 1 || items > 2)
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) 2497 0 2497
if (items < 1 || items > 2) 0 2497 2497
186 0 croak_xs_usage(cv, "CLASS, name= \"\"");
187 {
188 kiwi::Variable * RETVAL;
189 2497 SV* CLASS = ST(0)
190 ;
191 2497 std::string name;
192  
193 2497 ▶ if (items < 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items < 2) 1283 1214 2497
194 1283 ▶ name = "";
Branch: 1 branch
BranchTrueFalseTotal
name = ""; 1283 0 1283
195 else {
196 { STRLEN __name_len;
197 1214 const char* __name_buf = SvPV(ST(1), __name_len);
198 1214 ▶ name.assign(__name_buf, __name_len); }
Branch: 1 branch
BranchTrueFalseTotal
name.assign(__name_buf, __name_len); } 1214 0 1214
199 ;
200 }
201 #line 17 "./Variable.xsi"
202 xs::Sv PROTO; PERL_UNUSED_VAR(PROTO);
203 PROTO = CLASS;
204 RETVAL = new kiwi::Variable(name);
205 #line 206 "Kiwisolver_xsgen.cc"
206 {
207 SV * RETVALSV;
208 2497 ▶ RETVALSV = xs::out(RETVAL, PROTO).detach();
Branch: 1 branch
BranchTrueFalseTotal
RETVALSV = xs::out(RETVAL, PROTO).detach(); 2497 0 2497
209 2497 ▶ RETVALSV = sv_2mortal(RETVALSV);
Branch: 1 branch
BranchTrueFalseTotal
RETVALSV = sv_2mortal(RETVALSV); 2497 0 2497
210 2497 ST(0) = RETVALSV;
211 }
212 2497 }
213 2497 XSRETURN(1);
214 2497 }); }
215  
216  
217  
218 54 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_name) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_name) { xs::throw_guard(cv, [=]() 27 0 27
219 {
220 27 dVAR; dXSARGS;
221 27 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 27 27
222 0 croak_xs_usage(cv, "THIS");
223 {
224 27 std::string RETVAL;
225 27 ▶ dXSTARG;
Branch: 2 branches
BranchTrueFalseTotal
dXSTARG; 27 0 27
dXSTARG; 0 0 0
226 27 ▶ kiwi::Variable* THIS = xs::in<kiwi::Variable *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 2 branches
BranchTrueFalseTotal
kiwi::Variable* THIS = xs::in<kiwi::Variable *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 27 0 27
kiwi::Variable* THIS = xs::in<kiwi::Variable *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 27 27
227 ;
228 #line 20 "./Variable.xsi"
229 RETVAL = THIS->name();
230 #line 231 "Kiwisolver_xsgen.cc"
231 27 ▶ sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length());
Branch: 1 branch
BranchTrueFalseTotal
sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); 27 0 27
232 27 ST(0) = TARG;
233 27 }
234 27 XSRETURN(1);
235 27 }); }
236  
237  
238  
239 1026 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_setName) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_setName) { xs::throw_guard(cv, [=]() 513 0 513
240 {
241 513 dVAR; dXSARGS;
242 513 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 513 513
243 0 croak_xs_usage(cv, "THIS, name");
244 PERL_UNUSED_VAR(ax); /* -Wall */
245 513 SP -= items;
246 {
247 513 ▶ kiwi::Variable* THIS = xs::in<kiwi::Variable *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 2 branches
BranchTrueFalseTotal
kiwi::Variable* THIS = xs::in<kiwi::Variable *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 513 0 513
kiwi::Variable* THIS = xs::in<kiwi::Variable *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 513 513
248 ;
249 513 std::string name;
250  
251 { STRLEN __name_len;
252 513 const char* __name_buf = SvPV(ST(1), __name_len);
253 513 ▶ name.assign(__name_buf, __name_len); }
Branch: 1 branch
BranchTrueFalseTotal
name.assign(__name_buf, __name_len); } 513 0 513
254 ;
255 #line 22 "./Variable.xsi"
256 THIS->setName(name);
257 #line 258 "Kiwisolver_xsgen.cc"
258 513 PUTBACK;
259 1026 return;
260 513 }
261 513 }); }
262  
263  
264  
265 1568 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_value) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_value) { xs::throw_guard(cv, [=]() 784 0 784
266 {
267 784 dVAR; dXSARGS;
268 784 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 784 784
269 0 croak_xs_usage(cv, "THIS");
270 {
271 double RETVAL;
272 784 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 784 0 784
273 784 ▶ kiwi::Variable* THIS = xs::in<kiwi::Variable *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Variable* THIS = xs::in<kiwi::Variable *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 784 784
274 ;
275 #line 24 "./Variable.xsi"
276 RETVAL = THIS->value();
277 #line 278 "Kiwisolver_xsgen.cc"
278 784 ▶ TARGn((double)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGn((double)RETVAL, 1); 731 53 784
279 784 ST(0) = TARG;
280 }
281 784 XSRETURN(1);
282 784 }); }
283  
284  
285  
286 16 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_setValue) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_setValue) { xs::throw_guard(cv, [=]() 8 0 8
287 {
288 8 dVAR; dXSARGS;
289 8 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 8 8
290 0 croak_xs_usage(cv, "THIS, value");
291 PERL_UNUSED_VAR(ax); /* -Wall */
292 8 SP -= items;
293 {
294 8 ▶ kiwi::Variable* THIS = xs::in<kiwi::Variable *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Variable* THIS = xs::in<kiwi::Variable *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 8 8
295 ;
296 8 double value = (double)SvNV(ST(1))
297 ;
298 #line 26 "./Variable.xsi"
299 THIS->setValue(value);
300 #line 301 "Kiwisolver_xsgen.cc"
301 8 PUTBACK;
302 8 return;
303 }
304 8 }); }
305  
306  
307  
308 4 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_equals) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_equals) { xs::throw_guard(cv, [=]() 2 0 2
309 {
310 2 dVAR; dXSARGS;
311 2 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 2 2
312 0 croak_xs_usage(cv, "THIS, other");
313 {
314 bool RETVAL;
315 2 ▶ kiwi::Variable* THIS = xs::in<kiwi::Variable *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Variable* THIS = xs::in<kiwi::Variable *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 2 2
316 ;
317 2 kiwi::Variable& other = xs::in<kiwi::Variable&>(ST(1));
318 ;
319 #line 28 "./Variable.xsi"
320 RETVAL = THIS->equals(other);
321 #line 322 "Kiwisolver_xsgen.cc"
322 2 ▶ ST(0) = boolSV(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
ST(0) = boolSV(RETVAL); 1 1 2
323 }
324 2 XSRETURN(1);
325 2 }); }
326  
327  
328 /* INCLUDE: Returning to 'Kiwisolver.xs' from 'Variable.xsi' */
329  
330  
331 /* INCLUDE: Including 'Term.xsi' from 'Kiwisolver.xs' */
332  
333 #include <xs.h>
334 #include <kiwi/kiwi.h>
335 namespace xs {
336 template <>
337 struct Typemap<kiwi::Term*> : TypemapObject<kiwi::Term*, kiwi::Term*, ObjectTypePtr, ObjectStorageMG, StaticCast> {
338 12 ▶ static std::string package () { return "Graphics::Layout::Kiwisolver::Term"; }
Branch: 1 branch
BranchTrueFalseTotal
static std::string package () { return "Graphics::Layout::Kiwisolver::Term"; } 4 0 4
339 };
340 }
341  
342  
343 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term_new) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term_new) { xs::throw_guard(cv, [=]() 0 0 0
344 {
345 0 dVAR; dXSARGS;
346 0 ▶ if (items < 2 || items > 3)
Branch: 2 branches
BranchTrueFalseTotal
if (items < 2 || items > 3) 0 0 0
if (items < 2 || items > 3) 0 0 0
347 0 croak_xs_usage(cv, "CLASS, variable, coefficient= 1.0");
348 {
349 kiwi::Term * RETVAL;
350 0 SV* CLASS = ST(0)
351 ;
352 0 ▶ kiwi::Variable* variable = xs::in<kiwi::Variable *>(ST(1));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Variable* variable = xs::in<kiwi::Variable *>(ST(1)); 0 0 0
353 ;
354 double coefficient;
355  
356 0 ▶ if (items < 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items < 3) 0 0 0
357 0 coefficient = 1.0;
358 else {
359 0 ▶ coefficient = (double)SvNV(ST(2))
Branch: 1 branch
BranchTrueFalseTotal
coefficient = (double)SvNV(ST(2)) 0 0 0
360 ;
361 }
362 #line 17 "./Term.xsi"
363 xs::Sv PROTO; PERL_UNUSED_VAR(PROTO);
364 PROTO = CLASS;
365 const kiwi::Variable& v = *variable;
366 RETVAL = new kiwi::Term(v, coefficient);
367 #line 368 "Kiwisolver_xsgen.cc"
368 {
369 SV * RETVALSV;
370 0 ▶ RETVALSV = xs::out(RETVAL, PROTO).detach();
Branch: 1 branch
BranchTrueFalseTotal
RETVALSV = xs::out(RETVAL, PROTO).detach(); 0 0 0
371 0 ▶ RETVALSV = sv_2mortal(RETVALSV);
Branch: 1 branch
BranchTrueFalseTotal
RETVALSV = sv_2mortal(RETVALSV); 0 0 0
372 0 ST(0) = RETVALSV;
373 }
374 0 }
375 0 XSRETURN(1);
376 0 }); }
377  
378  
379  
380 6 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term_variable) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term_variable) { xs::throw_guard(cv, [=]() 3 0 3
381 {
382 3 dVAR; dXSARGS;
383 3 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 3 3
384 0 croak_xs_usage(cv, "THIS");
385 {
386 kiwi::Variable * RETVAL;
387 3 ▶ kiwi::Term* THIS = xs::in<kiwi::Term *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 2 branches
BranchTrueFalseTotal
kiwi::Term* THIS = xs::in<kiwi::Term *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 3 0 3
kiwi::Term* THIS = xs::in<kiwi::Term *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 3 3
388 ;
389 #line 22 "./Term.xsi"
390 xs::Sv PROTO; PERL_UNUSED_VAR(PROTO);
391 RETVAL = &( const_cast<kiwi::Variable&>( THIS->variable() ) );
392 #line 393 "Kiwisolver_xsgen.cc"
393 {
394 SV * RETVALSV;
395 3 ▶ RETVALSV = xs::out(RETVAL, PROTO).detach();
Branch: 1 branch
BranchTrueFalseTotal
RETVALSV = xs::out(RETVAL, PROTO).detach(); 3 0 3
396 3 ▶ RETVALSV = sv_2mortal(RETVALSV);
Branch: 1 branch
BranchTrueFalseTotal
RETVALSV = sv_2mortal(RETVALSV); 3 0 3
397 3 ST(0) = RETVALSV;
398 }
399 3 }
400 3 XSRETURN(1);
401 3 }); }
402  
403  
404  
405 6 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term_coefficient) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term_coefficient) { xs::throw_guard(cv, [=]() 3 0 3
406 {
407 3 dVAR; dXSARGS;
408 3 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 3 3
409 0 croak_xs_usage(cv, "THIS");
410 {
411 double RETVAL;
412 3 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 3 0 3
413 3 ▶ kiwi::Term* THIS = xs::in<kiwi::Term *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Term* THIS = xs::in<kiwi::Term *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 3 3
414 ;
415 #line 25 "./Term.xsi"
416 RETVAL = THIS->coefficient();
417 #line 418 "Kiwisolver_xsgen.cc"
418 3 ▶ TARGn((double)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGn((double)RETVAL, 1); 2 1 3
419 3 ST(0) = TARG;
420 }
421 3 XSRETURN(1);
422 3 }); }
423  
424  
425  
426 6 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term_value) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term_value) { xs::throw_guard(cv, [=]() 3 0 3
427 {
428 3 dVAR; dXSARGS;
429 3 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 3 3
430 0 croak_xs_usage(cv, "THIS");
431 {
432 double RETVAL;
433 3 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 3 0 3
434 3 ▶ kiwi::Term* THIS = xs::in<kiwi::Term *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Term* THIS = xs::in<kiwi::Term *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 3 3
435 ;
436 #line 27 "./Term.xsi"
437 RETVAL = THIS->value();
438 #line 439 "Kiwisolver_xsgen.cc"
439 3 ▶ TARGn((double)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGn((double)RETVAL, 1); 2 1 3
440 3 ST(0) = TARG;
441 }
442 3 XSRETURN(1);
443 3 }); }
444  
445  
446 /* INCLUDE: Returning to 'Kiwisolver.xs' from 'Term.xsi' */
447  
448  
449 /* INCLUDE: Including 'Expression.xsi' from 'Kiwisolver.xs' */
450  
451 #include <xs.h>
452 #include <kiwi/kiwi.h>
453 namespace xs {
454 template <>
455 struct Typemap<kiwi::Expression*> : TypemapObject<kiwi::Expression*, kiwi::Expression*, ObjectTypePtr, ObjectStorageMG, StaticCast> {
456 42 ▶ static std::string package () { return "Graphics::Layout::Kiwisolver::Expression"; }
Branch: 1 branch
BranchTrueFalseTotal
static std::string package () { return "Graphics::Layout::Kiwisolver::Expression"; } 14 0 14
457 };
458 }
459  
460  
461 2 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression_terms) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression_terms) { xs::throw_guard(cv, [=]() 1 0 1
462 {
463 1 dVAR; dXSARGS;
464 1 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 1 1
465 0 croak_xs_usage(cv, "THIS");
466 {
467 1 std::vector<kiwi::Term * > RETVAL;
468 1 ▶ kiwi::Expression* THIS = xs::in<kiwi::Expression *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 2 branches
BranchTrueFalseTotal
kiwi::Expression* THIS = xs::in<kiwi::Expression *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 1 0 1
kiwi::Expression* THIS = xs::in<kiwi::Expression *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 1 1
469 ;
470 #line 17 "./Expression.xsi"
471 xs::Sv PROTO; PERL_UNUSED_VAR(PROTO);
472 std::vector<kiwi::Term> terms = THIS->terms();
473 size_t n = terms.size();
474 RETVAL = std::vector<kiwi::Term*>(n);
475 for( int i = 0; i < n; i++ ) {
476 RETVAL[i] = new kiwi::Term(terms[i]);
477 }
478 #line 479 "Kiwisolver_xsgen.cc"
479 {
480 SV * RETVALSV;
481 1 ▶ RETVALSV = xs::out(RETVAL, PROTO).detach();
Branch: 1 branch
BranchTrueFalseTotal
RETVALSV = xs::out(RETVAL, PROTO).detach(); 1 0 1
482 1 ▶ RETVALSV = sv_2mortal(RETVALSV);
Branch: 1 branch
BranchTrueFalseTotal
RETVALSV = sv_2mortal(RETVALSV); 1 0 1
483 1 ST(0) = RETVALSV;
484 }
485 1 }
486 1 XSRETURN(1);
487 1 }); }
488  
489  
490  
491 2 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression_constant) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression_constant) { xs::throw_guard(cv, [=]() 1 0 1
492 {
493 1 dVAR; dXSARGS;
494 1 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 1 1
495 0 croak_xs_usage(cv, "THIS");
496 {
497 double RETVAL;
498 1 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 1 0 1
499 1 ▶ kiwi::Expression* THIS = xs::in<kiwi::Expression *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Expression* THIS = xs::in<kiwi::Expression *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 1 1
500 ;
501 #line 25 "./Expression.xsi"
502 RETVAL = THIS->constant();
503 #line 504 "Kiwisolver_xsgen.cc"
504 1 ▶ TARGn((double)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGn((double)RETVAL, 1); 0 1 1
505 1 ST(0) = TARG;
506 }
507 1 XSRETURN(1);
508 1 }); }
509  
510  
511  
512 4 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression_value) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression_value) { xs::throw_guard(cv, [=]() 2 0 2
513 {
514 2 dVAR; dXSARGS;
515 2 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 2 2
516 0 croak_xs_usage(cv, "THIS");
517 {
518 double RETVAL;
519 2 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 2 0 2
520 2 ▶ kiwi::Expression* THIS = xs::in<kiwi::Expression *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Expression* THIS = xs::in<kiwi::Expression *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 2 2
521 ;
522 #line 27 "./Expression.xsi"
523 RETVAL = THIS->value();
524 #line 525 "Kiwisolver_xsgen.cc"
525 2 ▶ TARGn((double)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGn((double)RETVAL, 1); 0 2 2
526 2 ST(0) = TARG;
527 }
528 2 XSRETURN(1);
529 2 }); }
530  
531  
532 /* INCLUDE: Returning to 'Kiwisolver.xs' from 'Expression.xsi' */
533  
534  
535 /* INCLUDE: Including 'Strength.xsi' from 'Kiwisolver.xs' */
536  
537 #include <xs.h>
538 #include <kiwi/kiwi.h>
539  
540  
541 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Strength_create) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Strength_create) { xs::throw_guard(cv, [=]() 0 0 0
542 {
543 0 dVAR; dXSARGS;
544 0 ▶ if (items < 3 || items > 4)
Branch: 2 branches
BranchTrueFalseTotal
if (items < 3 || items > 4) 0 0 0
if (items < 3 || items > 4) 0 0 0
545 0 croak_xs_usage(cv, "a, b, c, w= 1.0");
546 {
547 double RETVAL;
548 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
549 0 double a = (double)SvNV(ST(0))
550 ;
551 0 double b = (double)SvNV(ST(1))
552 ;
553 0 double c = (double)SvNV(ST(2))
554 ;
555 double w;
556  
557 0 ▶ if (items < 4)
Branch: 1 branch
BranchTrueFalseTotal
if (items < 4) 0 0 0
558 0 w = 1.0;
559 else {
560 0 w = (double)SvNV(ST(3))
561 ;
562 }
563 #line 10 "./Strength.xsi"
564 RETVAL = kiwi::strength::create(a, b, c, w);
565 #line 566 "Kiwisolver_xsgen.cc"
566 0 ▶ TARGn((double)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGn((double)RETVAL, 1); 0 0 0
567 0 ST(0) = TARG;
568 }
569 0 XSRETURN(1);
570 0 }); }
571  
572  
573 /* INCLUDE: Returning to 'Kiwisolver.xs' from 'Strength.xsi' */
574  
575  
576 /* INCLUDE: Including 'Constraint.xsi' from 'Kiwisolver.xs' */
577  
578 #include <xs.h>
579 #include <kiwi/kiwi.h>
580 namespace xs {
581 template <>
582 struct Typemap<kiwi::Constraint*> : TypemapObject<kiwi::Constraint*, kiwi::Constraint*, ObjectTypeRefcntPtr, ObjectStorageMG, StaticCast> {
583 36 ▶ static std::string package () { return "Graphics::Layout::Kiwisolver::Constraint"; }
Branch: 1 branch
BranchTrueFalseTotal
static std::string package () { return "Graphics::Layout::Kiwisolver::Constraint"; } 12 0 12
584 };
585 }
586  
587  
588 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Constraint_expression) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Constraint_expression) { xs::throw_guard(cv, [=]() 0 0 0
589 {
590 0 dVAR; dXSARGS;
591 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
592 0 croak_xs_usage(cv, "THIS");
593 {
594 kiwi::Expression * RETVAL;
595 0 ▶ kiwi::Constraint* THIS = xs::in<kiwi::Constraint *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 2 branches
BranchTrueFalseTotal
kiwi::Constraint* THIS = xs::in<kiwi::Constraint *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 0 0
kiwi::Constraint* THIS = xs::in<kiwi::Constraint *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 0 0
596 ;
597 #line 17 "./Constraint.xsi"
598 xs::Sv PROTO; PERL_UNUSED_VAR(PROTO);
599 RETVAL = &( const_cast<kiwi::Expression&>( THIS->expression() ) );
600 #line 601 "Kiwisolver_xsgen.cc"
601 {
602 SV * RETVALSV;
603 0 ▶ RETVALSV = xs::out(RETVAL, PROTO).detach();
Branch: 1 branch
BranchTrueFalseTotal
RETVALSV = xs::out(RETVAL, PROTO).detach(); 0 0 0
604 0 ▶ RETVALSV = sv_2mortal(RETVALSV);
Branch: 1 branch
BranchTrueFalseTotal
RETVALSV = sv_2mortal(RETVALSV); 0 0 0
605 0 ST(0) = RETVALSV;
606 }
607 0 }
608 0 XSRETURN(1);
609 0 }); }
610  
611  
612  
613 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Constraint_strength) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Constraint_strength) { xs::throw_guard(cv, [=]() 0 0 0
614 {
615 0 dVAR; dXSARGS;
616 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
617 0 croak_xs_usage(cv, "THIS");
618 {
619 double RETVAL;
620 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
621 0 ▶ kiwi::Constraint* THIS = xs::in<kiwi::Constraint *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Constraint* THIS = xs::in<kiwi::Constraint *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 0 0
622 ;
623 #line 20 "./Constraint.xsi"
624 RETVAL = THIS->strength();
625 #line 626 "Kiwisolver_xsgen.cc"
626 0 ▶ TARGn((double)RETVAL, 1);
Branch: 1 branch
BranchTrueFalseTotal
TARGn((double)RETVAL, 1); 0 0 0
627 0 ST(0) = TARG;
628 }
629 0 XSRETURN(1);
630 0 }); }
631  
632  
633  
634 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Constraint__op_neg) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Constraint__op_neg) { xs::throw_guard(cv, [=]() 0 0 0
635 {
636 0 dVAR; dXSARGS;
637 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
638 0 croak_xs_usage(cv, "THIS");
639 {
640 bool RETVAL;
641 0 ▶ kiwi::Constraint* THIS = xs::in<kiwi::Constraint *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Constraint* THIS = xs::in<kiwi::Constraint *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 0 0
642 ;
643 #line 23 "./Constraint.xsi"
644 RETVAL = !(*THIS);
645 #line 646 "Kiwisolver_xsgen.cc"
646 0 ▶ ST(0) = boolSV(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
ST(0) = boolSV(RETVAL); 0 0 0
647 }
648 0 XSRETURN(1);
649 0 }); }
650  
651  
652 /* INCLUDE: Returning to 'Kiwisolver.xs' from 'Constraint.xsi' */
653  
654  
655 /* INCLUDE: Including 'Solver.xsi' from 'Kiwisolver.xs' */
656  
657 #include <xs.h>
658 #include <kiwi/kiwi.h>
659 namespace xs {
660 template <>
661 struct Typemap<kiwi::Solver*> : TypemapObject<kiwi::Solver*, kiwi::Solver*, ObjectTypePtr, ObjectStorageMG, StaticCast> {
662 0 ▶ static std::string package () { return "Graphics::Layout::Kiwisolver::Solver"; }
Branch: 1 branch
BranchTrueFalseTotal
static std::string package () { return "Graphics::Layout::Kiwisolver::Solver"; } 0 0 0
663 };
664 }
665  
666  
667 10 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_new) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_new) { xs::throw_guard(cv, [=]() 5 0 5
668 {
669 5 dVAR; dXSARGS;
670 5 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 5 5
671 0 croak_xs_usage(cv, "CLASS");
672 {
673 kiwi::Solver * RETVAL;
674 5 SV* CLASS = ST(0)
675 ;
676 #line 16 "./Solver.xsi"
677 xs::Sv PROTO; PERL_UNUSED_VAR(PROTO);
678 PROTO = CLASS;
679 RETVAL = new kiwi::Solver();
680 #line 681 "Kiwisolver_xsgen.cc"
681 {
682 SV * RETVALSV;
683 5 ▶ RETVALSV = xs::out(RETVAL, PROTO).detach();
Branch: 1 branch
BranchTrueFalseTotal
RETVALSV = xs::out(RETVAL, PROTO).detach(); 5 0 5
684 5 ▶ RETVALSV = sv_2mortal(RETVALSV);
Branch: 1 branch
BranchTrueFalseTotal
RETVALSV = sv_2mortal(RETVALSV); 5 0 5
685 5 ST(0) = RETVALSV;
686 }
687 5 }
688 5 XSRETURN(1);
689 5 }); }
690  
691  
692  
693 4994 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_addConstraint) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_addConstraint) { xs::throw_guard(cv, [=]() 2497 0 2497
694 {
695 2497 dVAR; dXSARGS;
696 2497 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 2497 2497
697 0 croak_xs_usage(cv, "THIS, constraint");
698 PERL_UNUSED_VAR(ax); /* -Wall */
699 2497 SP -= items;
700 {
701 2497 ▶ kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 2497 2497
702 ;
703 2497 kiwi::Constraint* constraint = xs::in<kiwi::Constraint *>(ST(1));
704 ;
705 #line 20 "./Solver.xsi"
706 THIS->addConstraint( *constraint );
707 #line 708 "Kiwisolver_xsgen.cc"
708 2497 PUTBACK;
709 2497 return;
710 }
711 2497 }); }
712  
713  
714  
715 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_removeConstraint) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_removeConstraint) { xs::throw_guard(cv, [=]() 0 0 0
716 {
717 0 dVAR; dXSARGS;
718 0 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 0 0
719 0 croak_xs_usage(cv, "THIS, constraint");
720 PERL_UNUSED_VAR(ax); /* -Wall */
721 0 SP -= items;
722 {
723 0 ▶ kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 0 0
724 ;
725 0 kiwi::Constraint* constraint = xs::in<kiwi::Constraint *>(ST(1));
726 ;
727 #line 24 "./Solver.xsi"
728 THIS->removeConstraint(*constraint);
729 #line 730 "Kiwisolver_xsgen.cc"
730 0 PUTBACK;
731 0 return;
732 }
733 0 }); }
734  
735  
736  
737 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_hasConstraint) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_hasConstraint) { xs::throw_guard(cv, [=]() 0 0 0
738 {
739 0 dVAR; dXSARGS;
740 0 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 0 0
741 0 croak_xs_usage(cv, "THIS, constraint");
742 {
743 bool RETVAL;
744 0 ▶ kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 0 0
745 ;
746 0 kiwi::Constraint* constraint = xs::in<kiwi::Constraint *>(ST(1));
747 ;
748 #line 28 "./Solver.xsi"
749 RETVAL = THIS->hasConstraint(*constraint);
750 #line 751 "Kiwisolver_xsgen.cc"
751 0 ▶ ST(0) = boolSV(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
ST(0) = boolSV(RETVAL); 0 0 0
752 }
753 0 XSRETURN(1);
754 0 }); }
755  
756  
757  
758 1438 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_addEditVariable) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_addEditVariable) { xs::throw_guard(cv, [=]() 719 0 719
759 {
760 719 dVAR; dXSARGS;
761 719 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 719 719
762 0 croak_xs_usage(cv, "THIS, variable, strength");
763 PERL_UNUSED_VAR(ax); /* -Wall */
764 719 SP -= items;
765 {
766 719 ▶ kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 719 719
767 ;
768 719 kiwi::Variable* variable = xs::in<kiwi::Variable *>(ST(1));
769 ;
770 719 double strength = (double)SvNV(ST(2))
771 ;
772 #line 32 "./Solver.xsi"
773 THIS->addEditVariable(*variable, strength);
774 #line 775 "Kiwisolver_xsgen.cc"
775 719 PUTBACK;
776 719 return;
777 }
778 719 }); }
779  
780  
781  
782 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_removeEditVariable) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_removeEditVariable) { xs::throw_guard(cv, [=]() 0 0 0
783 {
784 0 dVAR; dXSARGS;
785 0 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 0 0
786 0 croak_xs_usage(cv, "THIS, variable");
787 PERL_UNUSED_VAR(ax); /* -Wall */
788 0 SP -= items;
789 {
790 0 ▶ kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 0 0
791 ;
792 0 kiwi::Variable* variable = xs::in<kiwi::Variable *>(ST(1));
793 ;
794 #line 36 "./Solver.xsi"
795 THIS->removeEditVariable(*variable);
796 #line 797 "Kiwisolver_xsgen.cc"
797 0 PUTBACK;
798 0 return;
799 }
800 0 }); }
801  
802  
803  
804 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_hasEditVariable) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_hasEditVariable) { xs::throw_guard(cv, [=]() 0 0 0
805 {
806 0 dVAR; dXSARGS;
807 0 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 0 0
808 0 croak_xs_usage(cv, "THIS, variable");
809 {
810 bool RETVAL;
811 0 ▶ kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 0 0
812 ;
813 0 kiwi::Variable* variable = xs::in<kiwi::Variable *>(ST(1));
814 ;
815 #line 40 "./Solver.xsi"
816 THIS->hasEditVariable(*variable);
817 #line 818 "Kiwisolver_xsgen.cc"
818 0 ▶ ST(0) = boolSV(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
ST(0) = boolSV(RETVAL); 0 0 0
819 }
820 0 XSRETURN(1);
821 0 }); }
822  
823  
824  
825 1238 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_suggestValue) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_suggestValue) { xs::throw_guard(cv, [=]() 619 0 619
826 {
827 619 dVAR; dXSARGS;
828 619 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 619 619
829 0 croak_xs_usage(cv, "THIS, variable, value");
830 PERL_UNUSED_VAR(ax); /* -Wall */
831 619 SP -= items;
832 {
833 619 ▶ kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 619 619
834 ;
835 619 kiwi::Variable* variable = xs::in<kiwi::Variable *>(ST(1));
836 ;
837 619 double value = (double)SvNV(ST(2))
838 ;
839 #line 44 "./Solver.xsi"
840 THIS->suggestValue(*variable, value);
841 #line 842 "Kiwisolver_xsgen.cc"
842 619 PUTBACK;
843 619 return;
844 }
845 619 }); }
846  
847  
848  
849 16 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_updateVariables) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_updateVariables) { xs::throw_guard(cv, [=]() 8 0 8
850 {
851 8 dVAR; dXSARGS;
852 8 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 8 8
853 0 croak_xs_usage(cv, "THIS");
854 PERL_UNUSED_VAR(ax); /* -Wall */
855 8 SP -= items;
856 {
857 8 ▶ kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 8 8
858 ;
859 #line 47 "./Solver.xsi"
860 THIS->updateVariables();
861 #line 862 "Kiwisolver_xsgen.cc"
862 8 PUTBACK;
863 8 return;
864 }
865 8 }); }
866  
867  
868  
869 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_reset) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_reset) { xs::throw_guard(cv, [=]() 0 0 0
870 {
871 0 dVAR; dXSARGS;
872 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
873 0 croak_xs_usage(cv, "THIS");
874 PERL_UNUSED_VAR(ax); /* -Wall */
875 0 SP -= items;
876 {
877 0 ▶ kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 0 0
878 ;
879 #line 49 "./Solver.xsi"
880 THIS->reset();
881 #line 882 "Kiwisolver_xsgen.cc"
882 0 PUTBACK;
883 0 return;
884 }
885 0 }); }
886  
887  
888  
889 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_dump) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_dump) { xs::throw_guard(cv, [=]() 0 0 0
890 {
891 0 dVAR; dXSARGS;
892 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
893 0 croak_xs_usage(cv, "THIS");
894 PERL_UNUSED_VAR(ax); /* -Wall */
895 0 SP -= items;
896 {
897 0 ▶ kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 0 0
898 ;
899 #line 51 "./Solver.xsi"
900 THIS->dump();
901 #line 902 "Kiwisolver_xsgen.cc"
902 0 PUTBACK;
903 0 return;
904 }
905 0 }); }
906  
907  
908  
909 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_dumps) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Solver_dumps) { xs::throw_guard(cv, [=]() 0 0 0
910 {
911 0 dVAR; dXSARGS;
912 0 ▶ if (items != 1)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) 0 0 0
913 0 croak_xs_usage(cv, "THIS");
914 {
915 0 std::string RETVAL;
916 0 ▶ dXSTARG;
Branch: 2 branches
BranchTrueFalseTotal
dXSTARG; 0 0 0
dXSTARG; 0 0 0
917 0 ▶ kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
Branch: 2 branches
BranchTrueFalseTotal
kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 0 0
kiwi::Solver* THIS = xs::in<kiwi::Solver *>(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS"; 0 0 0
918 ;
919 #line 53 "./Solver.xsi"
920 RETVAL = THIS->dumps();
921 #line 922 "Kiwisolver_xsgen.cc"
922 0 ▶ sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length());
Branch: 1 branch
BranchTrueFalseTotal
sv_setpvn((SV*)TARG, RETVAL.data(), RETVAL.length()); 0 0 0
923 0 ST(0) = TARG;
924 0 }
925 0 XSRETURN(1);
926 0 }); }
927  
928  
929 /* INCLUDE: Returning to 'Kiwisolver.xs' from 'Solver.xsi' */
930  
931  
932 /* INCLUDE: Including 'Symbolics.xsi' from 'Kiwisolver.xs' */
933  
934 #include <xs.h>
935 #include <kiwi/kiwi.h>
936 #define KIWI_MODULE_NS "Graphics::Layout::Kiwisolver::"
937 #define KIWI_CLASS(x) (KIWI_MODULE_NS ## x)
938  
939 /* INCLUDE_COMMAND: Including output of '/usr/local/bin/perl inc/symbolics.pl' from 'Symbolics.xsi' */
940  
941  
942  
943 2200 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Constraint__op_or) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Constraint__op_or) { xs::throw_guard(cv, [=]() 1100 0 1100
944 {
945 1100 dVAR; dXSARGS;
946 1100 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 1100 1100
947 0 croak_xs_usage(cv, "a, b, swap");
948 {
949 SV * RETVAL;
950 1100 ▶ kiwi::Constraint* a = xs::in<kiwi::Constraint *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Constraint* a = xs::in<kiwi::Constraint *>(ST(0)); 1100 0 1100
951 ;
952 1100 Sv b = ST(1)
953 ;
954 1100 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 1100 0 1100
bool swap = (bool)SvTRUE(ST(2)) 1100 0 1100
955 ;
956 #line 7 "/usr/local/bin/perl inc/symbolics.pl"
957 if( ! b.defined() ) {
958 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation | with undef operand" );
959 }
960  
961 else
962 // Constraint operator|( const Constraint& constraint, double strength ) (SWAP)
963 if( ! b.is_object() && b.is_like_number() ) {
964 kiwi::Constraint* result;
965 if( ! swap ) {
966 result = new kiwi::Constraint ( *a | ( xs::in<double>(b) ) );
967 } else {
968 result = new kiwi::Constraint ( ( xs::in<double>(b) ) | *a );
969 }
970 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
971 }
972 #line 973 "Kiwisolver_xsgen.cc"
973 1100 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 1100 0 1100
974 1100 ST(0) = RETVAL;
975 1100 }
976 1100 XSRETURN(1);
977 1100 }); }
978  
979  
980  
981 2 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_neg) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_neg) { xs::throw_guard(cv, [=]() 1 0 1
982 {
983 1 dVAR; dXSARGS;
984 1 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 1 1
985 0 croak_xs_usage(cv, "a, b, swap");
986 {
987 SV * RETVAL;
988 1 ▶ kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0)); 1 0 1
989 ;
990 1 Sv b = ST(1)
991 ;
992 1 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 1 0 1
bool swap = (bool)SvTRUE(ST(2)) 1 0 1
993 ;
994 #line 30 "/usr/local/bin/perl inc/symbolics.pl"
995 // Expression operator-( const Expression& expression )
996 kiwi::Expression* result = new kiwi::Expression ( - (*a) );
997 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
998 #line 999 "Kiwisolver_xsgen.cc"
999 1 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 1 0 1
1000 1 ST(0) = RETVAL;
1001 1 }
1002 1 XSRETURN(1);
1003 1 }); }
1004  
1005  
1006  
1007 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_mult) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_mult) { xs::throw_guard(cv, [=]() 0 0 0
1008 {
1009 0 dVAR; dXSARGS;
1010 0 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 0 0
1011 0 croak_xs_usage(cv, "a, b, swap");
1012 {
1013 SV * RETVAL;
1014 0 ▶ kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0)); 0 0 0
1015 ;
1016 0 Sv b = ST(1)
1017 ;
1018 0 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 0 0 0
bool swap = (bool)SvTRUE(ST(2)) 0 0 0
1019 ;
1020 #line 36 "/usr/local/bin/perl inc/symbolics.pl"
1021 if( ! b.defined() ) {
1022 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation * with undef operand" );
1023 }
1024  
1025 else
1026 // Expression operator*( const Expression& expression, double coefficient ) (SWAP)
1027 if( ! b.is_object() && b.is_like_number() ) {
1028 kiwi::Expression* result;
1029 if( ! swap ) {
1030 result = new kiwi::Expression ( *a * ( xs::in<double>(b) ) );
1031 } else {
1032 result = new kiwi::Expression ( ( xs::in<double>(b) ) * *a );
1033 }
1034 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1035 }
1036 #line 1037 "Kiwisolver_xsgen.cc"
1037 0 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 0 0 0
1038 0 ST(0) = RETVAL;
1039 0 }
1040 0 XSRETURN(1);
1041 0 }); }
1042  
1043  
1044  
1045 4 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_add) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_add) { xs::throw_guard(cv, [=]() 0 0 0
1046 {
1047 2 dVAR; dXSARGS;
1048 2 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 2 2
1049 0 croak_xs_usage(cv, "a, b, swap");
1050 {
1051 SV * RETVAL;
1052 2 ▶ kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0)); 2 0 2
1053 ;
1054 2 Sv b = ST(1)
1055 ;
1056 2 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 2 0 2
bool swap = (bool)SvTRUE(ST(2)) 2 0 2
1057 ;
1058 #line 54 "/usr/local/bin/perl inc/symbolics.pl"
1059 if( ! b.defined() ) {
1060 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation + with undef operand" );
1061 }
1062  
1063 else
1064 // Expression operator+( const Expression& expression, double constant ) (SWAP)
1065 if( ! b.is_object() && b.is_like_number() ) {
1066 kiwi::Expression* result;
1067 if( ! swap ) {
1068 result = new kiwi::Expression ( *a + ( xs::in<double>(b) ) );
1069 } else {
1070 result = new kiwi::Expression ( ( xs::in<double>(b) ) + *a );
1071 }
1072 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1073 }
1074 else
1075 // Expression operator+( const Expression& first, const Expression& second )
1076 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
1077 kiwi::Expression* result = new kiwi::Expression ( *a + *( xs::in<kiwi::Expression*>(b) ) );
1078 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1079 }
1080 else
1081 // Expression operator+( const Expression& first, const Term& second )
1082 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
1083 kiwi::Expression* result = new kiwi::Expression ( *a + *( xs::in<kiwi::Term*>(b) ) );
1084 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1085 }
1086 else
1087 // Expression operator+( const Expression& expression, const Variable& variable )
1088 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
1089 kiwi::Expression* result = new kiwi::Expression ( *a + *( xs::in<kiwi::Variable*>(b) ) );
1090 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1091 }
1092 #line 1093 "Kiwisolver_xsgen.cc"
1093 0 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 0 0 0
1094 0 ST(0) = RETVAL;
1095 2 }
1096 0 XSRETURN(1);
1097 0 }); }
1098  
1099  
1100  
1101 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_minus) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_minus) { xs::throw_guard(cv, [=]() 0 0 0
1102 {
1103 0 dVAR; dXSARGS;
1104 0 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 0 0
1105 0 croak_xs_usage(cv, "a, b, swap");
1106 {
1107 SV * RETVAL;
1108 0 ▶ kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0)); 0 0 0
1109 ;
1110 0 Sv b = ST(1)
1111 ;
1112 0 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 0 0 0
bool swap = (bool)SvTRUE(ST(2)) 0 0 0
1113 ;
1114 #line 90 "/usr/local/bin/perl inc/symbolics.pl"
1115 if( ! b.defined() ) {
1116 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation - with undef operand" );
1117 }
1118  
1119 else
1120 // Expression operator-( const Expression& expression, double constant ) (SWAP)
1121 if( ! b.is_object() && b.is_like_number() ) {
1122 kiwi::Expression* result;
1123 if( ! swap ) {
1124 result = new kiwi::Expression ( *a - ( xs::in<double>(b) ) );
1125 } else {
1126 result = new kiwi::Expression ( ( xs::in<double>(b) ) - *a );
1127 }
1128 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1129 }
1130 else
1131 // Expression operator-( const Expression& first, const Expression& second )
1132 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
1133 kiwi::Expression* result = new kiwi::Expression ( *a - *( xs::in<kiwi::Expression*>(b) ) );
1134 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1135 }
1136 else
1137 // Expression operator-( const Expression& expression, const Term& term )
1138 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
1139 kiwi::Expression* result = new kiwi::Expression ( *a - *( xs::in<kiwi::Term*>(b) ) );
1140 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1141 }
1142 else
1143 // Expression operator-( const Expression& expression, const Variable& variable )
1144 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
1145 kiwi::Expression* result = new kiwi::Expression ( *a - *( xs::in<kiwi::Variable*>(b) ) );
1146 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1147 }
1148 #line 1149 "Kiwisolver_xsgen.cc"
1149 0 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 0 0 0
1150 0 ST(0) = RETVAL;
1151 0 }
1152 0 XSRETURN(1);
1153 0 }); }
1154  
1155  
1156  
1157 130 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_div) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_div) { xs::throw_guard(cv, [=]() 65 0 65
1158 {
1159 65 dVAR; dXSARGS;
1160 65 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 65 65
1161 0 croak_xs_usage(cv, "a, b, swap");
1162 {
1163 SV * RETVAL;
1164 65 ▶ kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0)); 65 0 65
1165 ;
1166 65 Sv b = ST(1)
1167 ;
1168 65 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 65 0 65
bool swap = (bool)SvTRUE(ST(2)) 65 0 65
1169 ;
1170 #line 126 "/usr/local/bin/perl inc/symbolics.pl"
1171 if( ! b.defined() ) {
1172 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation / with undef operand" );
1173 }
1174  
1175 else
1176 // Expression operator/( const Expression& expression, double denominator )
1177 if( ! b.is_object() && b.is_like_number() ) {
1178 kiwi::Expression* result;
1179 result = new kiwi::Expression ( *a / ( xs::in<double>(b) ) );
1180 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1181 }
1182 #line 1183 "Kiwisolver_xsgen.cc"
1183 65 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 65 0 65
1184 65 ST(0) = RETVAL;
1185 65 }
1186 65 XSRETURN(1);
1187 65 }); }
1188  
1189  
1190  
1191 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_num_le) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_num_le) { xs::throw_guard(cv, [=]() 0 0 0
1192 {
1193 0 dVAR; dXSARGS;
1194 0 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 0 0
1195 0 croak_xs_usage(cv, "a, b, swap");
1196 {
1197 SV * RETVAL;
1198 0 ▶ kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0)); 0 0 0
1199 ;
1200 0 Sv b = ST(1)
1201 ;
1202 0 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 0 0 0
bool swap = (bool)SvTRUE(ST(2)) 0 0 0
1203 ;
1204 #line 140 "/usr/local/bin/perl inc/symbolics.pl"
1205 if( ! b.defined() ) {
1206 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation <= with undef operand" );
1207 }
1208  
1209 else
1210 // Constraint operator<=( const Expression& expression, double constant ) (SWAP)
1211 if( ! b.is_object() && b.is_like_number() ) {
1212 kiwi::Constraint* result;
1213 if( ! swap ) {
1214 result = new kiwi::Constraint ( *a <= ( xs::in<double>(b) ) );
1215 } else {
1216 result = new kiwi::Constraint ( ( xs::in<double>(b) ) <= *a );
1217 }
1218 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1219 }
1220 else
1221 // Constraint operator<=( const Expression& first, const Expression& second )
1222 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
1223 kiwi::Constraint* result = new kiwi::Constraint ( *a <= *( xs::in<kiwi::Expression*>(b) ) );
1224 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1225 }
1226 else
1227 // Constraint operator<=( const Expression& expression, const Term& term )
1228 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
1229 kiwi::Constraint* result = new kiwi::Constraint ( *a <= *( xs::in<kiwi::Term*>(b) ) );
1230 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1231 }
1232 else
1233 // Constraint operator<=( const Expression& expression, const Variable& variable )
1234 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
1235 kiwi::Constraint* result = new kiwi::Constraint ( *a <= *( xs::in<kiwi::Variable*>(b) ) );
1236 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1237 }
1238 #line 1239 "Kiwisolver_xsgen.cc"
1239 0 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 0 0 0
1240 0 ST(0) = RETVAL;
1241 0 }
1242 0 XSRETURN(1);
1243 0 }); }
1244  
1245  
1246  
1247 2 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_num_eq) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_num_eq) { xs::throw_guard(cv, [=]() 1 0 1
1248 {
1249 1 dVAR; dXSARGS;
1250 1 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 1 1
1251 0 croak_xs_usage(cv, "a, b, swap");
1252 {
1253 SV * RETVAL;
1254 1 ▶ kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0)); 1 0 1
1255 ;
1256 1 Sv b = ST(1)
1257 ;
1258 1 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 1 0 1
bool swap = (bool)SvTRUE(ST(2)) 1 0 1
1259 ;
1260 #line 176 "/usr/local/bin/perl inc/symbolics.pl"
1261 if( ! b.defined() ) {
1262 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation == with undef operand" );
1263 }
1264  
1265 else
1266 // Constraint operator==( const Expression& expression, double constant ) (SWAP)
1267 if( ! b.is_object() && b.is_like_number() ) {
1268 kiwi::Constraint* result;
1269 if( ! swap ) {
1270 result = new kiwi::Constraint ( *a == ( xs::in<double>(b) ) );
1271 } else {
1272 result = new kiwi::Constraint ( ( xs::in<double>(b) ) == *a );
1273 }
1274 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1275 }
1276 else
1277 // Constraint operator==( const Expression& first, const Expression& second )
1278 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
1279 kiwi::Constraint* result = new kiwi::Constraint ( *a == *( xs::in<kiwi::Expression*>(b) ) );
1280 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1281 }
1282 else
1283 // Constraint operator==( const Expression& expression, const Term& term )
1284 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
1285 kiwi::Constraint* result = new kiwi::Constraint ( *a == *( xs::in<kiwi::Term*>(b) ) );
1286 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1287 }
1288 else
1289 // Constraint operator==( const Expression& expression, const Variable& variable )
1290 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
1291 kiwi::Constraint* result = new kiwi::Constraint ( *a == *( xs::in<kiwi::Variable*>(b) ) );
1292 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1293 }
1294 #line 1295 "Kiwisolver_xsgen.cc"
1295 1 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 1 0 1
1296 1 ST(0) = RETVAL;
1297 1 }
1298 1 XSRETURN(1);
1299 1 }); }
1300  
1301  
1302  
1303 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_num_ge) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression__op_num_ge) { xs::throw_guard(cv, [=]() 0 0 0
1304 {
1305 0 dVAR; dXSARGS;
1306 0 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 0 0
1307 0 croak_xs_usage(cv, "a, b, swap");
1308 {
1309 SV * RETVAL;
1310 0 ▶ kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Expression* a = xs::in<kiwi::Expression *>(ST(0)); 0 0 0
1311 ;
1312 0 Sv b = ST(1)
1313 ;
1314 0 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 0 0 0
bool swap = (bool)SvTRUE(ST(2)) 0 0 0
1315 ;
1316 #line 212 "/usr/local/bin/perl inc/symbolics.pl"
1317 if( ! b.defined() ) {
1318 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation >= with undef operand" );
1319 }
1320  
1321 else
1322 // Constraint operator>=( const Expression& expression, double constant ) (SWAP)
1323 if( ! b.is_object() && b.is_like_number() ) {
1324 kiwi::Constraint* result;
1325 if( ! swap ) {
1326 result = new kiwi::Constraint ( *a >= ( xs::in<double>(b) ) );
1327 } else {
1328 result = new kiwi::Constraint ( ( xs::in<double>(b) ) >= *a );
1329 }
1330 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1331 }
1332 else
1333 // Constraint operator>=( const Expression& first, const Expression& second )
1334 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
1335 kiwi::Constraint* result = new kiwi::Constraint ( *a >= *( xs::in<kiwi::Expression*>(b) ) );
1336 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1337 }
1338 else
1339 // Constraint operator>=( const Expression& expression, const Term& term )
1340 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
1341 kiwi::Constraint* result = new kiwi::Constraint ( *a >= *( xs::in<kiwi::Term*>(b) ) );
1342 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1343 }
1344 else
1345 // Constraint operator>=( const Expression& expression, const Variable& variable )
1346 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
1347 kiwi::Constraint* result = new kiwi::Constraint ( *a >= *( xs::in<kiwi::Variable*>(b) ) );
1348 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1349 }
1350 #line 1351 "Kiwisolver_xsgen.cc"
1351 0 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 0 0 0
1352 0 ST(0) = RETVAL;
1353 0 }
1354 0 XSRETURN(1);
1355 0 }); }
1356  
1357  
1358  
1359 2 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_neg) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_neg) { xs::throw_guard(cv, [=]() 1 0 1
1360 {
1361 1 dVAR; dXSARGS;
1362 1 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 1 1
1363 0 croak_xs_usage(cv, "a, b, swap");
1364 {
1365 SV * RETVAL;
1366 1 ▶ kiwi::Term* a = xs::in<kiwi::Term *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Term* a = xs::in<kiwi::Term *>(ST(0)); 1 0 1
1367 ;
1368 1 Sv b = ST(1)
1369 ;
1370 1 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 1 0 1
bool swap = (bool)SvTRUE(ST(2)) 1 0 1
1371 ;
1372 #line 253 "/usr/local/bin/perl inc/symbolics.pl"
1373 // Term operator-( const Term& term )
1374 kiwi::Term* result = new kiwi::Term ( - (*a) );
1375 RETVAL = xs::out<kiwi::Term*>(result, NULL).detach();
1376 #line 1377 "Kiwisolver_xsgen.cc"
1377 1 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 1 0 1
1378 1 ST(0) = RETVAL;
1379 1 }
1380 1 XSRETURN(1);
1381 1 }); }
1382  
1383  
1384  
1385 4 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_mult) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_mult) { xs::throw_guard(cv, [=]() 0 0 0
1386 {
1387 2 dVAR; dXSARGS;
1388 2 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 2 2
1389 0 croak_xs_usage(cv, "a, b, swap");
1390 {
1391 SV * RETVAL;
1392 2 ▶ kiwi::Term* a = xs::in<kiwi::Term *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Term* a = xs::in<kiwi::Term *>(ST(0)); 2 0 2
1393 ;
1394 2 Sv b = ST(1)
1395 ;
1396 2 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 2 0 2
bool swap = (bool)SvTRUE(ST(2)) 2 0 2
1397 ;
1398 #line 259 "/usr/local/bin/perl inc/symbolics.pl"
1399 if( ! b.defined() ) {
1400 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation * with undef operand" );
1401 }
1402  
1403 else
1404 // Term operator*( const Term& term, double coefficient ) (SWAP)
1405 if( ! b.is_object() && b.is_like_number() ) {
1406 kiwi::Term* result;
1407 if( ! swap ) {
1408 result = new kiwi::Term ( *a * ( xs::in<double>(b) ) );
1409 } else {
1410 result = new kiwi::Term ( ( xs::in<double>(b) ) * *a );
1411 }
1412 RETVAL = xs::out<kiwi::Term*>(result, NULL).detach();
1413 }
1414 #line 1415 "Kiwisolver_xsgen.cc"
1415 0 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 0 0 0
1416 0 ST(0) = RETVAL;
1417 2 }
1418 0 XSRETURN(1);
1419 0 }); }
1420  
1421  
1422  
1423 30 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_add) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_add) { xs::throw_guard(cv, [=]() 13 0 13
1424 {
1425 15 dVAR; dXSARGS;
1426 15 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 15 15
1427 0 croak_xs_usage(cv, "a, b, swap");
1428 {
1429 SV * RETVAL;
1430 15 ▶ kiwi::Term* a = xs::in<kiwi::Term *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Term* a = xs::in<kiwi::Term *>(ST(0)); 15 0 15
1431 ;
1432 15 Sv b = ST(1)
1433 ;
1434 15 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 15 0 15
bool swap = (bool)SvTRUE(ST(2)) 15 0 15
1435 ;
1436 #line 277 "/usr/local/bin/perl inc/symbolics.pl"
1437 if( ! b.defined() ) {
1438 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation + with undef operand" );
1439 }
1440  
1441 else
1442 // Expression operator+( const Term& term, double constant ) (SWAP)
1443 if( ! b.is_object() && b.is_like_number() ) {
1444 kiwi::Expression* result;
1445 if( ! swap ) {
1446 result = new kiwi::Expression ( *a + ( xs::in<double>(b) ) );
1447 } else {
1448 result = new kiwi::Expression ( ( xs::in<double>(b) ) + *a );
1449 }
1450 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1451 }
1452 else
1453 // Expression operator+( const Term& term, const Expression& expression )
1454 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
1455 kiwi::Expression* result = new kiwi::Expression ( *a + *( xs::in<kiwi::Expression*>(b) ) );
1456 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1457 }
1458 else
1459 // Expression operator+( const Term& first, const Term& second )
1460 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
1461 kiwi::Expression* result = new kiwi::Expression ( *a + *( xs::in<kiwi::Term*>(b) ) );
1462 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1463 }
1464 else
1465 // Expression operator+( const Term& term, const Variable& variable )
1466 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
1467 kiwi::Expression* result = new kiwi::Expression ( *a + *( xs::in<kiwi::Variable*>(b) ) );
1468 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1469 }
1470 #line 1471 "Kiwisolver_xsgen.cc"
1471 13 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 13 0 13
1472 13 ST(0) = RETVAL;
1473 15 }
1474 13 XSRETURN(1);
1475 13 }); }
1476  
1477  
1478  
1479 6 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_minus) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_minus) { xs::throw_guard(cv, [=]() 3 0 3
1480 {
1481 3 dVAR; dXSARGS;
1482 3 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 3 3
1483 0 croak_xs_usage(cv, "a, b, swap");
1484 {
1485 SV * RETVAL;
1486 3 ▶ kiwi::Term* a = xs::in<kiwi::Term *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Term* a = xs::in<kiwi::Term *>(ST(0)); 3 0 3
1487 ;
1488 3 Sv b = ST(1)
1489 ;
1490 3 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 3 0 3
bool swap = (bool)SvTRUE(ST(2)) 3 0 3
1491 ;
1492 #line 313 "/usr/local/bin/perl inc/symbolics.pl"
1493 if( ! b.defined() ) {
1494 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation - with undef operand" );
1495 }
1496  
1497 else
1498 // Expression operator-( const Term& term, double constant ) (SWAP)
1499 if( ! b.is_object() && b.is_like_number() ) {
1500 kiwi::Expression* result;
1501 if( ! swap ) {
1502 result = new kiwi::Expression ( *a - ( xs::in<double>(b) ) );
1503 } else {
1504 result = new kiwi::Expression ( ( xs::in<double>(b) ) - *a );
1505 }
1506 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1507 }
1508 else
1509 // Expression operator-( const Term& term, const Expression& expression )
1510 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
1511 kiwi::Expression* result = new kiwi::Expression ( *a - *( xs::in<kiwi::Expression*>(b) ) );
1512 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1513 }
1514 else
1515 // Expression operator-( const Term& first, const Term& second )
1516 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
1517 kiwi::Expression* result = new kiwi::Expression ( *a - *( xs::in<kiwi::Term*>(b) ) );
1518 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1519 }
1520 else
1521 // Expression operator-( const Term& term, const Variable& variable )
1522 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
1523 kiwi::Expression* result = new kiwi::Expression ( *a - *( xs::in<kiwi::Variable*>(b) ) );
1524 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1525 }
1526 #line 1527 "Kiwisolver_xsgen.cc"
1527 3 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 3 0 3
1528 3 ST(0) = RETVAL;
1529 3 }
1530 3 XSRETURN(1);
1531 3 }); }
1532  
1533  
1534  
1535 2 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_div) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_div) { xs::throw_guard(cv, [=]() 1 0 1
1536 {
1537 1 dVAR; dXSARGS;
1538 1 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 1 1
1539 0 croak_xs_usage(cv, "a, b, swap");
1540 {
1541 SV * RETVAL;
1542 1 ▶ kiwi::Term* a = xs::in<kiwi::Term *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Term* a = xs::in<kiwi::Term *>(ST(0)); 1 0 1
1543 ;
1544 1 Sv b = ST(1)
1545 ;
1546 1 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 1 0 1
bool swap = (bool)SvTRUE(ST(2)) 1 0 1
1547 ;
1548 #line 349 "/usr/local/bin/perl inc/symbolics.pl"
1549 if( ! b.defined() ) {
1550 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation / with undef operand" );
1551 }
1552  
1553 else
1554 // Term operator/( const Term& term, double denominator )
1555 if( ! b.is_object() && b.is_like_number() ) {
1556 kiwi::Term* result;
1557 result = new kiwi::Term ( *a / ( xs::in<double>(b) ) );
1558 RETVAL = xs::out<kiwi::Term*>(result, NULL).detach();
1559 }
1560 #line 1561 "Kiwisolver_xsgen.cc"
1561 1 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 1 0 1
1562 1 ST(0) = RETVAL;
1563 1 }
1564 1 XSRETURN(1);
1565 1 }); }
1566  
1567  
1568  
1569 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_num_le) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_num_le) { xs::throw_guard(cv, [=]() 0 0 0
1570 {
1571 0 dVAR; dXSARGS;
1572 0 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 0 0
1573 0 croak_xs_usage(cv, "a, b, swap");
1574 {
1575 SV * RETVAL;
1576 0 ▶ kiwi::Term* a = xs::in<kiwi::Term *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Term* a = xs::in<kiwi::Term *>(ST(0)); 0 0 0
1577 ;
1578 0 Sv b = ST(1)
1579 ;
1580 0 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 0 0 0
bool swap = (bool)SvTRUE(ST(2)) 0 0 0
1581 ;
1582 #line 363 "/usr/local/bin/perl inc/symbolics.pl"
1583 if( ! b.defined() ) {
1584 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation <= with undef operand" );
1585 }
1586  
1587 else
1588 // Constraint operator<=( const Term& term, double constant ) (SWAP)
1589 if( ! b.is_object() && b.is_like_number() ) {
1590 kiwi::Constraint* result;
1591 if( ! swap ) {
1592 result = new kiwi::Constraint ( *a <= ( xs::in<double>(b) ) );
1593 } else {
1594 result = new kiwi::Constraint ( ( xs::in<double>(b) ) <= *a );
1595 }
1596 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1597 }
1598 else
1599 // Constraint operator<=( const Term& term, const Expression& expression )
1600 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
1601 kiwi::Constraint* result = new kiwi::Constraint ( *a <= *( xs::in<kiwi::Expression*>(b) ) );
1602 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1603 }
1604 else
1605 // Constraint operator<=( const Term& first, const Term& second )
1606 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
1607 kiwi::Constraint* result = new kiwi::Constraint ( *a <= *( xs::in<kiwi::Term*>(b) ) );
1608 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1609 }
1610 else
1611 // Constraint operator<=( const Term& term, const Variable& variable )
1612 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
1613 kiwi::Constraint* result = new kiwi::Constraint ( *a <= *( xs::in<kiwi::Variable*>(b) ) );
1614 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1615 }
1616 #line 1617 "Kiwisolver_xsgen.cc"
1617 0 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 0 0 0
1618 0 ST(0) = RETVAL;
1619 0 }
1620 0 XSRETURN(1);
1621 0 }); }
1622  
1623  
1624  
1625 4 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_num_eq) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_num_eq) { xs::throw_guard(cv, [=]() 2 0 2
1626 {
1627 2 dVAR; dXSARGS;
1628 2 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 2 2
1629 0 croak_xs_usage(cv, "a, b, swap");
1630 {
1631 SV * RETVAL;
1632 2 ▶ kiwi::Term* a = xs::in<kiwi::Term *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Term* a = xs::in<kiwi::Term *>(ST(0)); 2 0 2
1633 ;
1634 2 Sv b = ST(1)
1635 ;
1636 2 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 2 0 2
bool swap = (bool)SvTRUE(ST(2)) 2 0 2
1637 ;
1638 #line 399 "/usr/local/bin/perl inc/symbolics.pl"
1639 if( ! b.defined() ) {
1640 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation == with undef operand" );
1641 }
1642  
1643 else
1644 // Constraint operator==( const Term& term, double constant ) (SWAP)
1645 if( ! b.is_object() && b.is_like_number() ) {
1646 kiwi::Constraint* result;
1647 if( ! swap ) {
1648 result = new kiwi::Constraint ( *a == ( xs::in<double>(b) ) );
1649 } else {
1650 result = new kiwi::Constraint ( ( xs::in<double>(b) ) == *a );
1651 }
1652 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1653 }
1654 else
1655 // Constraint operator==( const Term& term, const Expression& expression )
1656 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
1657 kiwi::Constraint* result = new kiwi::Constraint ( *a == *( xs::in<kiwi::Expression*>(b) ) );
1658 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1659 }
1660 else
1661 // Constraint operator==( const Term& first, const Term& second )
1662 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
1663 kiwi::Constraint* result = new kiwi::Constraint ( *a == *( xs::in<kiwi::Term*>(b) ) );
1664 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1665 }
1666 else
1667 // Constraint operator==( const Term& term, const Variable& variable )
1668 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
1669 kiwi::Constraint* result = new kiwi::Constraint ( *a == *( xs::in<kiwi::Variable*>(b) ) );
1670 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1671 }
1672 #line 1673 "Kiwisolver_xsgen.cc"
1673 2 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 2 0 2
1674 2 ST(0) = RETVAL;
1675 2 }
1676 2 XSRETURN(1);
1677 2 }); }
1678  
1679  
1680  
1681 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_num_ge) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term__op_num_ge) { xs::throw_guard(cv, [=]() 0 0 0
1682 {
1683 0 dVAR; dXSARGS;
1684 0 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 0 0
1685 0 croak_xs_usage(cv, "a, b, swap");
1686 {
1687 SV * RETVAL;
1688 0 ▶ kiwi::Term* a = xs::in<kiwi::Term *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Term* a = xs::in<kiwi::Term *>(ST(0)); 0 0 0
1689 ;
1690 0 Sv b = ST(1)
1691 ;
1692 0 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 0 0 0
bool swap = (bool)SvTRUE(ST(2)) 0 0 0
1693 ;
1694 #line 435 "/usr/local/bin/perl inc/symbolics.pl"
1695 if( ! b.defined() ) {
1696 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation >= with undef operand" );
1697 }
1698  
1699 else
1700 // Constraint operator>=( const Term& term, double constant ) (SWAP)
1701 if( ! b.is_object() && b.is_like_number() ) {
1702 kiwi::Constraint* result;
1703 if( ! swap ) {
1704 result = new kiwi::Constraint ( *a >= ( xs::in<double>(b) ) );
1705 } else {
1706 result = new kiwi::Constraint ( ( xs::in<double>(b) ) >= *a );
1707 }
1708 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1709 }
1710 else
1711 // Constraint operator>=( const Term& term, const Expression& expression )
1712 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
1713 kiwi::Constraint* result = new kiwi::Constraint ( *a >= *( xs::in<kiwi::Expression*>(b) ) );
1714 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1715 }
1716 else
1717 // Constraint operator>=( const Term& first, const Term& second )
1718 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
1719 kiwi::Constraint* result = new kiwi::Constraint ( *a >= *( xs::in<kiwi::Term*>(b) ) );
1720 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1721 }
1722 else
1723 // Constraint operator>=( const Term& term, const Variable& variable )
1724 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
1725 kiwi::Constraint* result = new kiwi::Constraint ( *a >= *( xs::in<kiwi::Variable*>(b) ) );
1726 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1727 }
1728 #line 1729 "Kiwisolver_xsgen.cc"
1729 0 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 0 0 0
1730 0 ST(0) = RETVAL;
1731 0 }
1732 0 XSRETURN(1);
1733 0 }); }
1734  
1735  
1736  
1737 2 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_neg) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_neg) { xs::throw_guard(cv, [=]() 1 0 1
1738 {
1739 1 dVAR; dXSARGS;
1740 1 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 1 1
1741 0 croak_xs_usage(cv, "a, b, swap");
1742 {
1743 SV * RETVAL;
1744 1 ▶ kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0)); 1 0 1
1745 ;
1746 1 Sv b = ST(1)
1747 ;
1748 1 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 1 0 1
bool swap = (bool)SvTRUE(ST(2)) 1 0 1
1749 ;
1750 #line 476 "/usr/local/bin/perl inc/symbolics.pl"
1751 // Term operator-( const Variable& variable )
1752 kiwi::Term* result = new kiwi::Term ( - (*a) );
1753 RETVAL = xs::out<kiwi::Term*>(result, NULL).detach();
1754 #line 1755 "Kiwisolver_xsgen.cc"
1755 1 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 1 0 1
1756 1 ST(0) = RETVAL;
1757 1 }
1758 1 XSRETURN(1);
1759 1 }); }
1760  
1761  
1762  
1763 56 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_mult) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_mult) { xs::throw_guard(cv, [=]() 26 0 26
1764 {
1765 28 dVAR; dXSARGS;
1766 28 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 28 28
1767 0 croak_xs_usage(cv, "a, b, swap");
1768 {
1769 SV * RETVAL;
1770 28 ▶ kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0)); 28 0 28
1771 ;
1772 28 Sv b = ST(1)
1773 ;
1774 28 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 28 0 28
bool swap = (bool)SvTRUE(ST(2)) 28 0 28
1775 ;
1776 #line 482 "/usr/local/bin/perl inc/symbolics.pl"
1777 if( ! b.defined() ) {
1778 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation * with undef operand" );
1779 }
1780  
1781 else
1782 // Term operator*( const Variable& variable, double coefficient ) (SWAP)
1783 if( ! b.is_object() && b.is_like_number() ) {
1784 kiwi::Term* result;
1785 if( ! swap ) {
1786 result = new kiwi::Term ( *a * ( xs::in<double>(b) ) );
1787 } else {
1788 result = new kiwi::Term ( ( xs::in<double>(b) ) * *a );
1789 }
1790 RETVAL = xs::out<kiwi::Term*>(result, NULL).detach();
1791 }
1792 #line 1793 "Kiwisolver_xsgen.cc"
1793 26 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 26 0 26
1794 26 ST(0) = RETVAL;
1795 28 }
1796 26 XSRETURN(1);
1797 26 }); }
1798  
1799  
1800  
1801 1618 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_add) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_add) { xs::throw_guard(cv, [=]() 807 0 807
1802 {
1803 809 dVAR; dXSARGS;
1804 809 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 809 809
1805 0 croak_xs_usage(cv, "a, b, swap");
1806 {
1807 SV * RETVAL;
1808 809 ▶ kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0)); 809 0 809
1809 ;
1810 809 Sv b = ST(1)
1811 ;
1812 809 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 809 0 809
bool swap = (bool)SvTRUE(ST(2)) 809 0 809
1813 ;
1814 #line 500 "/usr/local/bin/perl inc/symbolics.pl"
1815 if( ! b.defined() ) {
1816 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation + with undef operand" );
1817 }
1818  
1819 else
1820 // Expression operator+( const Variable& variable, double constant ) (SWAP)
1821 if( ! b.is_object() && b.is_like_number() ) {
1822 kiwi::Expression* result;
1823 if( ! swap ) {
1824 result = new kiwi::Expression ( *a + ( xs::in<double>(b) ) );
1825 } else {
1826 result = new kiwi::Expression ( ( xs::in<double>(b) ) + *a );
1827 }
1828 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1829 }
1830 else
1831 // Expression operator+( const Variable& variable, const Expression& expression )
1832 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
1833 kiwi::Expression* result = new kiwi::Expression ( *a + *( xs::in<kiwi::Expression*>(b) ) );
1834 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1835 }
1836 else
1837 // Expression operator+( const Variable& variable, const Term& term )
1838 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
1839 kiwi::Expression* result = new kiwi::Expression ( *a + *( xs::in<kiwi::Term*>(b) ) );
1840 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1841 }
1842 else
1843 // Expression operator+( const Variable& first, const Variable& second )
1844 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
1845 kiwi::Expression* result = new kiwi::Expression ( *a + *( xs::in<kiwi::Variable*>(b) ) );
1846 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1847 }
1848 #line 1849 "Kiwisolver_xsgen.cc"
1849 807 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 807 0 807
1850 807 ST(0) = RETVAL;
1851 809 }
1852 807 XSRETURN(1);
1853 807 }); }
1854  
1855  
1856  
1857 250 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_minus) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_minus) { xs::throw_guard(cv, [=]() 123 0 123
1858 {
1859 125 dVAR; dXSARGS;
1860 125 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 125 125
1861 0 croak_xs_usage(cv, "a, b, swap");
1862 {
1863 SV * RETVAL;
1864 125 ▶ kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0)); 125 0 125
1865 ;
1866 125 Sv b = ST(1)
1867 ;
1868 125 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 125 0 125
bool swap = (bool)SvTRUE(ST(2)) 125 0 125
1869 ;
1870 #line 536 "/usr/local/bin/perl inc/symbolics.pl"
1871 if( ! b.defined() ) {
1872 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation - with undef operand" );
1873 }
1874  
1875 else
1876 // Expression operator-( const Variable& variable, double constant ) (SWAP)
1877 if( ! b.is_object() && b.is_like_number() ) {
1878 kiwi::Expression* result;
1879 if( ! swap ) {
1880 result = new kiwi::Expression ( *a - ( xs::in<double>(b) ) );
1881 } else {
1882 result = new kiwi::Expression ( ( xs::in<double>(b) ) - *a );
1883 }
1884 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1885 }
1886 else
1887 // Expression operator-( const Variable& variable, const Expression& expression )
1888 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
1889 kiwi::Expression* result = new kiwi::Expression ( *a - *( xs::in<kiwi::Expression*>(b) ) );
1890 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1891 }
1892 else
1893 // Expression operator-( const Variable& variable, const Term& term )
1894 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
1895 kiwi::Expression* result = new kiwi::Expression ( *a - *( xs::in<kiwi::Term*>(b) ) );
1896 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1897 }
1898 else
1899 // Expression operator-( const Variable& first, const Variable& second )
1900 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
1901 kiwi::Expression* result = new kiwi::Expression ( *a - *( xs::in<kiwi::Variable*>(b) ) );
1902 RETVAL = xs::out<kiwi::Expression*>(result, NULL).detach();
1903 }
1904 #line 1905 "Kiwisolver_xsgen.cc"
1905 123 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 123 0 123
1906 123 ST(0) = RETVAL;
1907 125 }
1908 123 XSRETURN(1);
1909 123 }); }
1910  
1911  
1912  
1913 22 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_div) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_div) { xs::throw_guard(cv, [=]() 11 0 11
1914 {
1915 11 dVAR; dXSARGS;
1916 11 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 11 11
1917 0 croak_xs_usage(cv, "a, b, swap");
1918 {
1919 SV * RETVAL;
1920 11 ▶ kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0)); 11 0 11
1921 ;
1922 11 Sv b = ST(1)
1923 ;
1924 11 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 11 0 11
bool swap = (bool)SvTRUE(ST(2)) 11 0 11
1925 ;
1926 #line 572 "/usr/local/bin/perl inc/symbolics.pl"
1927 if( ! b.defined() ) {
1928 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation / with undef operand" );
1929 }
1930  
1931 else
1932 // Term operator/( const Variable& variable, double denominator )
1933 if( ! b.is_object() && b.is_like_number() ) {
1934 kiwi::Term* result;
1935 result = new kiwi::Term ( *a / ( xs::in<double>(b) ) );
1936 RETVAL = xs::out<kiwi::Term*>(result, NULL).detach();
1937 }
1938 #line 1939 "Kiwisolver_xsgen.cc"
1939 11 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 11 0 11
1940 11 ST(0) = RETVAL;
1941 11 }
1942 11 XSRETURN(1);
1943 11 }); }
1944  
1945  
1946  
1947 750 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_num_le) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_num_le) { xs::throw_guard(cv, [=]() 375 0 375
1948 {
1949 375 dVAR; dXSARGS;
1950 375 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 375 375
1951 0 croak_xs_usage(cv, "a, b, swap");
1952 {
1953 SV * RETVAL;
1954 375 ▶ kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0)); 375 0 375
1955 ;
1956 375 Sv b = ST(1)
1957 ;
1958 375 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 375 0 375
bool swap = (bool)SvTRUE(ST(2)) 375 0 375
1959 ;
1960 #line 586 "/usr/local/bin/perl inc/symbolics.pl"
1961 if( ! b.defined() ) {
1962 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation <= with undef operand" );
1963 }
1964  
1965 else
1966 // Constraint operator<=( const Variable& variable, double constant ) (SWAP)
1967 if( ! b.is_object() && b.is_like_number() ) {
1968 kiwi::Constraint* result;
1969 if( ! swap ) {
1970 result = new kiwi::Constraint ( *a <= ( xs::in<double>(b) ) );
1971 } else {
1972 result = new kiwi::Constraint ( ( xs::in<double>(b) ) <= *a );
1973 }
1974 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1975 }
1976 else
1977 // Constraint operator<=( const Variable& variable, const Expression& expression )
1978 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
1979 kiwi::Constraint* result = new kiwi::Constraint ( *a <= *( xs::in<kiwi::Expression*>(b) ) );
1980 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1981 }
1982 else
1983 // Constraint operator<=( const Variable& variable, const Term& term )
1984 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
1985 kiwi::Constraint* result = new kiwi::Constraint ( *a <= *( xs::in<kiwi::Term*>(b) ) );
1986 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1987 }
1988 else
1989 // Constraint operator<=( const Variable& first, const Variable& second )
1990 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
1991 kiwi::Constraint* result = new kiwi::Constraint ( *a <= *( xs::in<kiwi::Variable*>(b) ) );
1992 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
1993 }
1994 #line 1995 "Kiwisolver_xsgen.cc"
1995 375 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 375 0 375
1996 375 ST(0) = RETVAL;
1997 375 }
1998 375 XSRETURN(1);
1999 375 }); }
2000  
2001  
2002  
2003 3478 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_num_eq) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_num_eq) { xs::throw_guard(cv, [=]() 1739 0 1739
2004 {
2005 1739 dVAR; dXSARGS;
2006 1739 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 1739 1739
2007 0 croak_xs_usage(cv, "a, b, swap");
2008 {
2009 SV * RETVAL;
2010 1739 ▶ kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0)); 1739 0 1739
2011 ;
2012 1739 Sv b = ST(1)
2013 ;
2014 1739 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 1739 0 1739
bool swap = (bool)SvTRUE(ST(2)) 1739 0 1739
2015 ;
2016 #line 622 "/usr/local/bin/perl inc/symbolics.pl"
2017 if( ! b.defined() ) {
2018 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation == with undef operand" );
2019 }
2020  
2021 else
2022 // Constraint operator==( const Variable& variable, double constant ) (SWAP)
2023 if( ! b.is_object() && b.is_like_number() ) {
2024 kiwi::Constraint* result;
2025 if( ! swap ) {
2026 result = new kiwi::Constraint ( *a == ( xs::in<double>(b) ) );
2027 } else {
2028 result = new kiwi::Constraint ( ( xs::in<double>(b) ) == *a );
2029 }
2030 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
2031 }
2032 else
2033 // Constraint operator==( const Variable& variable, const Expression& expression )
2034 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
2035 kiwi::Constraint* result = new kiwi::Constraint ( *a == *( xs::in<kiwi::Expression*>(b) ) );
2036 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
2037 }
2038 else
2039 // Constraint operator==( const Variable& variable, const Term& term )
2040 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
2041 kiwi::Constraint* result = new kiwi::Constraint ( *a == *( xs::in<kiwi::Term*>(b) ) );
2042 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
2043 }
2044 else
2045 // Constraint operator==( const Variable& first, const Variable& second )
2046 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
2047 kiwi::Constraint* result = new kiwi::Constraint ( *a == *( xs::in<kiwi::Variable*>(b) ) );
2048 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
2049 }
2050 #line 2051 "Kiwisolver_xsgen.cc"
2051 1739 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 1739 0 1739
2052 1739 ST(0) = RETVAL;
2053 1739 }
2054 1739 XSRETURN(1);
2055 1739 }); }
2056  
2057  
2058  
2059 768 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_num_ge) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable__op_num_ge) { xs::throw_guard(cv, [=]() 384 0 384
2060 {
2061 384 dVAR; dXSARGS;
2062 384 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 384 384
2063 0 croak_xs_usage(cv, "a, b, swap");
2064 {
2065 SV * RETVAL;
2066 384 ▶ kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
kiwi::Variable* a = xs::in<kiwi::Variable *>(ST(0)); 384 0 384
2067 ;
2068 384 Sv b = ST(1)
2069 ;
2070 384 ▶ bool swap = (bool)SvTRUE(ST(2))
Branch: 2 branches
BranchTrueFalseTotal
bool swap = (bool)SvTRUE(ST(2)) 384 0 384
bool swap = (bool)SvTRUE(ST(2)) 384 0 384
2071 ;
2072 #line 658 "/usr/local/bin/perl inc/symbolics.pl"
2073 if( ! b.defined() ) {
2074 throw std::invalid_argument( "Graphics::Layout::Kiwisolver: operation >= with undef operand" );
2075 }
2076  
2077 else
2078 // Constraint operator>=( const Variable& variable, double constant ) (SWAP)
2079 if( ! b.is_object() && b.is_like_number() ) {
2080 kiwi::Constraint* result;
2081 if( ! swap ) {
2082 result = new kiwi::Constraint ( *a >= ( xs::in<double>(b) ) );
2083 } else {
2084 result = new kiwi::Constraint ( ( xs::in<double>(b) ) >= *a );
2085 }
2086 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
2087 }
2088 else
2089 // Constraint operator>=( const Variable& variable, const Expression& expression )
2090 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Expression") ) {
2091 kiwi::Constraint* result = new kiwi::Constraint ( *a >= *( xs::in<kiwi::Expression*>(b) ) );
2092 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
2093 }
2094 else
2095 // Constraint operator>=( const Variable& variable, const Term& term )
2096 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Term") ) {
2097 kiwi::Constraint* result = new kiwi::Constraint ( *a >= *( xs::in<kiwi::Term*>(b) ) );
2098 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
2099 }
2100 else
2101 // Constraint operator>=( const Variable& first, const Variable& second )
2102 if( xs::Object(b).isa("Graphics::Layout::Kiwisolver::Variable") ) {
2103 kiwi::Constraint* result = new kiwi::Constraint ( *a >= *( xs::in<kiwi::Variable*>(b) ) );
2104 RETVAL = xs::out<kiwi::Constraint*>(result, NULL).detach();
2105 }
2106 #line 2107 "Kiwisolver_xsgen.cc"
2107 384 ▶ RETVAL = sv_2mortal(RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = sv_2mortal(RETVAL); 384 0 384
2108 384 ST(0) = RETVAL;
2109 384 }
2110 384 XSRETURN(1);
2111 384 }); }
2112  
2113  
2114 /* INCLUDE: Returning to 'Symbolics.xsi' from '/usr/local/bin/perl inc/symbolics.pl' */
2115  
2116  
2117 /* INCLUDE: Returning to 'Kiwisolver.xs' from 'Symbolics.xsi' */
2118  
2119  
2120 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Constraint_nil) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Constraint_nil) { xs::throw_guard(cv, [=]() 0 0 0
2121 {
2122 0 dXSARGS;
2123 PERL_UNUSED_VAR(items);
2124 0 XSRETURN_EMPTY;
2125 0 }); }
2126  
2127  
2128 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression_nil) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Expression_nil) { xs::throw_guard(cv, [=]() 0 0 0
2129 {
2130 0 dXSARGS;
2131 PERL_UNUSED_VAR(items);
2132 0 XSRETURN_EMPTY;
2133 0 }); }
2134  
2135  
2136 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term_nil) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Term_nil) { xs::throw_guard(cv, [=]() 0 0 0
2137 {
2138 0 dXSARGS;
2139 PERL_UNUSED_VAR(items);
2140 0 XSRETURN_EMPTY;
2141 0 }); }
2142  
2143  
2144 0 ▶XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_nil) { xs::throw_guard(cv, [=]()
Branch: 1 branch
BranchTrueFalseTotal
XS_EUPXS(XS_Graphics__Layout__Kiwisolver__Variable_nil) { xs::throw_guard(cv, [=]() 0 0 0
2145 {
2146 0 dXSARGS;
2147 PERL_UNUSED_VAR(items);
2148 0 XSRETURN_EMPTY;
2149 0 }); }
2150  
2151 #ifdef __cplusplus
2152 extern "C" {
2153 #endif
2154  
2155 16 ▶XS_EXTERNAL(boot_Graphics__Layout__Kiwisolver) { xs::throw_guard(cv, [=]() mutable
Branch: 1 branch
BranchTrueFalseTotal
XS_EXTERNAL(boot_Graphics__Layout__Kiwisolver) { xs::throw_guard(cv, [=]() mutable 8 0 8
2156 {
2157 #if PERL_VERSION_LE(5, 21, 5)
2158 dVAR; dXSARGS;
2159 #else
2160 8 dVAR; dXSBOOTARGSXSAPIVERCHK;
2161 #endif
2162 #if PERL_VERSION_LE(5, 8, 999) /* PERL_VERSION_LT is 5.33+ */
2163 char* file = __FILE__;
2164 #else
2165 8 const char* file = __FILE__;
2166 #endif
2167  
2168 PERL_UNUSED_VAR(file);
2169  
2170 PERL_UNUSED_VAR(cv); /* -W */
2171 PERL_UNUSED_VAR(items); /* -W */
2172 #if PERL_VERSION_LE(5, 21, 5)
2173 XS_VERSION_BOOTCHECK;
2174 # ifdef XS_APIVERSION_BOOTCHECK
2175 XS_APIVERSION_BOOTCHECK;
2176 # endif
2177 #endif
2178  
2179 /* register the overloading (type 'A') magic */
2180 #if PERL_VERSION_LE(5, 8, 999) /* PERL_VERSION_LT is 5.33+ */
2181 PL_amagic_generation++;
2182 #endif
2183 /* The magic for overload gets a GV* via gv_fetchmeth as */
2184 /* mentioned above, and looks in the SV* slot of it for */
2185 /* the "fallback" status. */
2186 8 sv_setsv(
2187 get_sv( "Graphics::Layout::Kiwisolver::Constraint::()", TRUE ),
2188 &PL_sv_undef
2189 );
2190 /* The magic for overload gets a GV* via gv_fetchmeth as */
2191 /* mentioned above, and looks in the SV* slot of it for */
2192 /* the "fallback" status. */
2193 8 sv_setsv(
2194 get_sv( "Graphics::Layout::Kiwisolver::Expression::()", TRUE ),
2195 &PL_sv_undef
2196 );
2197 /* The magic for overload gets a GV* via gv_fetchmeth as */
2198 /* mentioned above, and looks in the SV* slot of it for */
2199 /* the "fallback" status. */
2200 8 sv_setsv(
2201 get_sv( "Graphics::Layout::Kiwisolver::Term::()", TRUE ),
2202 &PL_sv_undef
2203 );
2204 /* The magic for overload gets a GV* via gv_fetchmeth as */
2205 /* mentioned above, and looks in the SV* slot of it for */
2206 /* the "fallback" status. */
2207 8 sv_setsv(
2208 get_sv( "Graphics::Layout::Kiwisolver::Variable::()", TRUE ),
2209 &PL_sv_undef
2210 );
2211 /* Making a sub named "Graphics::Layout::Kiwisolver::Variable::()" allows the package */
2212 /* to be findable via fetchmethod(), and causes */
2213 /* overload::Overloaded("Graphics::Layout::Kiwisolver::Variable") to return true. */
2214 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Variable::()", XS_Graphics__Layout__Kiwisolver__Variable_nil);
2215 /* Making a sub named "Graphics::Layout::Kiwisolver::Term::()" allows the package */
2216 /* to be findable via fetchmethod(), and causes */
2217 /* overload::Overloaded("Graphics::Layout::Kiwisolver::Term") to return true. */
2218 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Term::()", XS_Graphics__Layout__Kiwisolver__Term_nil);
2219 /* Making a sub named "Graphics::Layout::Kiwisolver::Expression::()" allows the package */
2220 /* to be findable via fetchmethod(), and causes */
2221 /* overload::Overloaded("Graphics::Layout::Kiwisolver::Expression") to return true. */
2222 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Expression::()", XS_Graphics__Layout__Kiwisolver__Expression_nil);
2223 /* Making a sub named "Graphics::Layout::Kiwisolver::Constraint::()" allows the package */
2224 /* to be findable via fetchmethod(), and causes */
2225 /* overload::Overloaded("Graphics::Layout::Kiwisolver::Constraint") to return true. */
2226 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Constraint::()", XS_Graphics__Layout__Kiwisolver__Constraint_nil);
2227 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::new", XS_Graphics__Layout__Kiwisolver__Variable_new);
2228 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::name", XS_Graphics__Layout__Kiwisolver__Variable_name);
2229 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::setName", XS_Graphics__Layout__Kiwisolver__Variable_setName);
2230 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::value", XS_Graphics__Layout__Kiwisolver__Variable_value);
2231 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::setValue", XS_Graphics__Layout__Kiwisolver__Variable_setValue);
2232 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::equals", XS_Graphics__Layout__Kiwisolver__Variable_equals);
2233 8 newXS_deffile("Graphics::Layout::Kiwisolver::Term::new", XS_Graphics__Layout__Kiwisolver__Term_new);
2234 8 newXS_deffile("Graphics::Layout::Kiwisolver::Term::variable", XS_Graphics__Layout__Kiwisolver__Term_variable);
2235 8 newXS_deffile("Graphics::Layout::Kiwisolver::Term::coefficient", XS_Graphics__Layout__Kiwisolver__Term_coefficient);
2236 8 newXS_deffile("Graphics::Layout::Kiwisolver::Term::value", XS_Graphics__Layout__Kiwisolver__Term_value);
2237 8 newXS_deffile("Graphics::Layout::Kiwisolver::Expression::terms", XS_Graphics__Layout__Kiwisolver__Expression_terms);
2238 8 newXS_deffile("Graphics::Layout::Kiwisolver::Expression::constant", XS_Graphics__Layout__Kiwisolver__Expression_constant);
2239 8 newXS_deffile("Graphics::Layout::Kiwisolver::Expression::value", XS_Graphics__Layout__Kiwisolver__Expression_value);
2240 8 newXS_deffile("Graphics::Layout::Kiwisolver::Strength::create", XS_Graphics__Layout__Kiwisolver__Strength_create);
2241 8 newXS_deffile("Graphics::Layout::Kiwisolver::Constraint::expression", XS_Graphics__Layout__Kiwisolver__Constraint_expression);
2242 8 newXS_deffile("Graphics::Layout::Kiwisolver::Constraint::strength", XS_Graphics__Layout__Kiwisolver__Constraint_strength);
2243 8 newXS_deffile("Graphics::Layout::Kiwisolver::Constraint::_op_neg", XS_Graphics__Layout__Kiwisolver__Constraint__op_neg);
2244 8 newXS_deffile("Graphics::Layout::Kiwisolver::Solver::new", XS_Graphics__Layout__Kiwisolver__Solver_new);
2245 8 newXS_deffile("Graphics::Layout::Kiwisolver::Solver::addConstraint", XS_Graphics__Layout__Kiwisolver__Solver_addConstraint);
2246 8 newXS_deffile("Graphics::Layout::Kiwisolver::Solver::removeConstraint", XS_Graphics__Layout__Kiwisolver__Solver_removeConstraint);
2247 8 newXS_deffile("Graphics::Layout::Kiwisolver::Solver::hasConstraint", XS_Graphics__Layout__Kiwisolver__Solver_hasConstraint);
2248 8 newXS_deffile("Graphics::Layout::Kiwisolver::Solver::addEditVariable", XS_Graphics__Layout__Kiwisolver__Solver_addEditVariable);
2249 8 newXS_deffile("Graphics::Layout::Kiwisolver::Solver::removeEditVariable", XS_Graphics__Layout__Kiwisolver__Solver_removeEditVariable);
2250 8 newXS_deffile("Graphics::Layout::Kiwisolver::Solver::hasEditVariable", XS_Graphics__Layout__Kiwisolver__Solver_hasEditVariable);
2251 8 newXS_deffile("Graphics::Layout::Kiwisolver::Solver::suggestValue", XS_Graphics__Layout__Kiwisolver__Solver_suggestValue);
2252 8 newXS_deffile("Graphics::Layout::Kiwisolver::Solver::updateVariables", XS_Graphics__Layout__Kiwisolver__Solver_updateVariables);
2253 8 newXS_deffile("Graphics::Layout::Kiwisolver::Solver::reset", XS_Graphics__Layout__Kiwisolver__Solver_reset);
2254 8 newXS_deffile("Graphics::Layout::Kiwisolver::Solver::dump", XS_Graphics__Layout__Kiwisolver__Solver_dump);
2255 8 newXS_deffile("Graphics::Layout::Kiwisolver::Solver::dumps", XS_Graphics__Layout__Kiwisolver__Solver_dumps);
2256 8 newXS_deffile("Graphics::Layout::Kiwisolver::Constraint::_op_or", XS_Graphics__Layout__Kiwisolver__Constraint__op_or);
2257 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Constraint::(|", XS_Graphics__Layout__Kiwisolver__Constraint__op_or);
2258 8 newXS_deffile("Graphics::Layout::Kiwisolver::Expression::_op_neg", XS_Graphics__Layout__Kiwisolver__Expression__op_neg);
2259 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Expression::(neg", XS_Graphics__Layout__Kiwisolver__Expression__op_neg);
2260 8 newXS_deffile("Graphics::Layout::Kiwisolver::Expression::_op_mult", XS_Graphics__Layout__Kiwisolver__Expression__op_mult);
2261 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Expression::(*", XS_Graphics__Layout__Kiwisolver__Expression__op_mult);
2262 8 newXS_deffile("Graphics::Layout::Kiwisolver::Expression::_op_add", XS_Graphics__Layout__Kiwisolver__Expression__op_add);
2263 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Expression::(+", XS_Graphics__Layout__Kiwisolver__Expression__op_add);
2264 8 newXS_deffile("Graphics::Layout::Kiwisolver::Expression::_op_minus", XS_Graphics__Layout__Kiwisolver__Expression__op_minus);
2265 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Expression::(-", XS_Graphics__Layout__Kiwisolver__Expression__op_minus);
2266 8 newXS_deffile("Graphics::Layout::Kiwisolver::Expression::_op_div", XS_Graphics__Layout__Kiwisolver__Expression__op_div);
2267 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Expression::(/", XS_Graphics__Layout__Kiwisolver__Expression__op_div);
2268 8 newXS_deffile("Graphics::Layout::Kiwisolver::Expression::_op_num_le", XS_Graphics__Layout__Kiwisolver__Expression__op_num_le);
2269 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Expression::(<=", XS_Graphics__Layout__Kiwisolver__Expression__op_num_le);
2270 8 newXS_deffile("Graphics::Layout::Kiwisolver::Expression::_op_num_eq", XS_Graphics__Layout__Kiwisolver__Expression__op_num_eq);
2271 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Expression::(==", XS_Graphics__Layout__Kiwisolver__Expression__op_num_eq);
2272 8 newXS_deffile("Graphics::Layout::Kiwisolver::Expression::_op_num_ge", XS_Graphics__Layout__Kiwisolver__Expression__op_num_ge);
2273 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Expression::(>=", XS_Graphics__Layout__Kiwisolver__Expression__op_num_ge);
2274 8 newXS_deffile("Graphics::Layout::Kiwisolver::Term::_op_neg", XS_Graphics__Layout__Kiwisolver__Term__op_neg);
2275 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Term::(neg", XS_Graphics__Layout__Kiwisolver__Term__op_neg);
2276 8 newXS_deffile("Graphics::Layout::Kiwisolver::Term::_op_mult", XS_Graphics__Layout__Kiwisolver__Term__op_mult);
2277 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Term::(*", XS_Graphics__Layout__Kiwisolver__Term__op_mult);
2278 8 newXS_deffile("Graphics::Layout::Kiwisolver::Term::_op_add", XS_Graphics__Layout__Kiwisolver__Term__op_add);
2279 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Term::(+", XS_Graphics__Layout__Kiwisolver__Term__op_add);
2280 8 newXS_deffile("Graphics::Layout::Kiwisolver::Term::_op_minus", XS_Graphics__Layout__Kiwisolver__Term__op_minus);
2281 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Term::(-", XS_Graphics__Layout__Kiwisolver__Term__op_minus);
2282 8 newXS_deffile("Graphics::Layout::Kiwisolver::Term::_op_div", XS_Graphics__Layout__Kiwisolver__Term__op_div);
2283 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Term::(/", XS_Graphics__Layout__Kiwisolver__Term__op_div);
2284 8 newXS_deffile("Graphics::Layout::Kiwisolver::Term::_op_num_le", XS_Graphics__Layout__Kiwisolver__Term__op_num_le);
2285 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Term::(<=", XS_Graphics__Layout__Kiwisolver__Term__op_num_le);
2286 8 newXS_deffile("Graphics::Layout::Kiwisolver::Term::_op_num_eq", XS_Graphics__Layout__Kiwisolver__Term__op_num_eq);
2287 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Term::(==", XS_Graphics__Layout__Kiwisolver__Term__op_num_eq);
2288 8 newXS_deffile("Graphics::Layout::Kiwisolver::Term::_op_num_ge", XS_Graphics__Layout__Kiwisolver__Term__op_num_ge);
2289 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Term::(>=", XS_Graphics__Layout__Kiwisolver__Term__op_num_ge);
2290 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::_op_neg", XS_Graphics__Layout__Kiwisolver__Variable__op_neg);
2291 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Variable::(neg", XS_Graphics__Layout__Kiwisolver__Variable__op_neg);
2292 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::_op_mult", XS_Graphics__Layout__Kiwisolver__Variable__op_mult);
2293 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Variable::(*", XS_Graphics__Layout__Kiwisolver__Variable__op_mult);
2294 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::_op_add", XS_Graphics__Layout__Kiwisolver__Variable__op_add);
2295 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Variable::(+", XS_Graphics__Layout__Kiwisolver__Variable__op_add);
2296 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::_op_minus", XS_Graphics__Layout__Kiwisolver__Variable__op_minus);
2297 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Variable::(-", XS_Graphics__Layout__Kiwisolver__Variable__op_minus);
2298 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::_op_div", XS_Graphics__Layout__Kiwisolver__Variable__op_div);
2299 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Variable::(/", XS_Graphics__Layout__Kiwisolver__Variable__op_div);
2300 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::_op_num_le", XS_Graphics__Layout__Kiwisolver__Variable__op_num_le);
2301 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Variable::(<=", XS_Graphics__Layout__Kiwisolver__Variable__op_num_le);
2302 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::_op_num_eq", XS_Graphics__Layout__Kiwisolver__Variable__op_num_eq);
2303 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Variable::(==", XS_Graphics__Layout__Kiwisolver__Variable__op_num_eq);
2304 8 newXS_deffile("Graphics::Layout::Kiwisolver::Variable::_op_num_ge", XS_Graphics__Layout__Kiwisolver__Variable__op_num_ge);
2305 8 (void)newXS_deffile("Graphics::Layout::Kiwisolver::Variable::(>=", XS_Graphics__Layout__Kiwisolver__Variable__op_num_ge);
2306  
2307 /* Initialisation Section */
2308  
2309 #line 11 "Kiwisolver.xs"
2310 {
2311 Stash("Graphics::Layout::Kiwisolver", GV_ADD).mark_as_loaded("Graphics::Layout::Kiwisolver");
2312 }
2313  
2314 #line 30 "./Variable.xsi"
2315 {
2316 Stash("Graphics::Layout::Kiwisolver::Variable", GV_ADD).mark_as_loaded("Graphics::Layout::Kiwisolver");
2317 }
2318  
2319 #line 29 "./Term.xsi"
2320 {
2321 Stash("Graphics::Layout::Kiwisolver::Term", GV_ADD).mark_as_loaded("Graphics::Layout::Kiwisolver");
2322 }
2323  
2324 #line 29 "./Expression.xsi"
2325 {
2326 Stash("Graphics::Layout::Kiwisolver::Expression", GV_ADD).mark_as_loaded("Graphics::Layout::Kiwisolver");
2327 }
2328  
2329 #line 13 "./Strength.xsi"
2330 {
2331 Stash stash = Stash("Graphics::Layout::Kiwisolver::Strength", GV_ADD);
2332 stash.mark_as_loaded("Graphics::Layout::Kiwisolver");
2333 stash.add_const_sub("REQUIRED" , Simple(kiwi::strength::required) );
2334 stash.add_const_sub("STRONG" , Simple(kiwi::strength::strong) );
2335 stash.add_const_sub("MEDIUM" , Simple(kiwi::strength::medium) );
2336 stash.add_const_sub("WEAK" , Simple(kiwi::strength::weak) );
2337 }
2338  
2339 #line 26 "./Constraint.xsi"
2340 {
2341 Stash("Graphics::Layout::Kiwisolver::Constraint", GV_ADD).mark_as_loaded("Graphics::Layout::Kiwisolver");
2342 }
2343  
2344 #line 55 "./Solver.xsi"
2345 {
2346 Stash("Graphics::Layout::Kiwisolver::Solver", GV_ADD).mark_as_loaded("Graphics::Layout::Kiwisolver");
2347 }
2348  
2349 #line 2350 "Kiwisolver_xsgen.cc"
2350  
2351 /* End of Initialisation Section */
2352  
2353 #if PERL_VERSION_LE(5, 21, 5)
2354 # if PERL_VERSION_GE(5, 9, 0)
2355 if (PL_unitcheckav)
2356 call_list(PL_scopestack_ix, PL_unitcheckav);
2357 # endif
2358 XSRETURN_YES;
2359 #else
2360 8 Perl_xs_boot_epilog(aTHX_ ax);
2361 #endif
2362 16 }); }
2363  
2364 #ifdef __cplusplus
2365 }
2366 #endif
« Solver.xsi ↑ Summary Strength.xsi »