passing in handle
Posted to
tcl
by ro at Fri Jan 11 08:10:05 GMT 2008
view raw
SDL_Rect *rect;
int p;
if
(Tcl_GetIntFromObj(interp, objv[1], &p) != TCL_OK) {
return
TCL_ERROR;
}
rect = (SDL_Rect*)p;
Tcl_SetObjResult(interp, Tcl_NewIntObj(rect->x));
Recent Posts
tcl by oldlaptop
3 days ago
tcl by oldlaptop
3 days ago
tcl by Molnija Bjornsson
9 days ago
tcl by Molnija Bjornsson
9 days ago
tcl by zmoment
9 days ago
tcl by zmoment
9 days ago
tcl by Guest86
14 days ago
tcl by Guest86
14 days ago
tcl by Guest86
14 days ago
tcl by Guest86
14 days ago
Submit
New paste
Documentation
From Jabber