On Sat, Jul 25, 2009 at 02:58:58PM +0200, Uli Schlachter wrote: > [...] > I'm not sure if this code is ready to go in. E.g. there is no way to check if > the SHAPE extension is available for lua code. Would we need something like > this? What would this API look like. > [...]
I'd say we shouldn't export that to Lua at all. Simply check for the shape extension on startup, set a flag in globalconf (something like have_shape) and if that's not set in the shape functions, simply ignore shape requests. -- GCS/IT/M d- s+:- a--- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o-- K- w--- O M-- V PS+ PE- Y+ PGP+++ t+ 5 X+ R tv+ b++ DI+++ D+++ G+ e- h! r y+ Gregor Best
pgpdcnzpSVbL3.pgp
Description: PGP signature