9 lines
287 B
Cheetah
9 lines
287 B
Cheetah
-- $Id: loader.tmpl,v 1.4 2004/06/08 13:08:16 tomas Exp $
|
|
if not (luasql and luasql.DRIVER) and loadlib then
|
|
local libname = "LIB_NAME"
|
|
local libopen = "luaopen_luasql_DRIVER"
|
|
local init, err1, err2 = loadlib (libname, libopen)
|
|
assert (init, (err1 or '')..(err2 or ''))
|
|
init ()
|
|
end
|