1
0
mirror of https://github.com/luapower/mysql.git synced 2024-12-28 03:40:30 +01:00

unimportant

This commit is contained in:
Cosmin Apreuetsei 2014-06-01 15:23:04 +03:00
parent 20e651d1d6
commit 8a88e36fdb

View File

@ -4,7 +4,7 @@ local bit = require'bit'
require'mysql_h'
local myok, myC = pcall(ffi.load, ffi.abi'win' and 'libmysql' or 'mysqlclient')
local maok, maC = pcall(ffi.load, ffi.abi'win' and 'libmariadb' or 'mariadb')
local C = maok and myC or maC
local C = assert((myok and myC) or (maok and maC), 'mysql or mariadb client library not found')
local M = {C = C}
--we compare NULL pointers against NULL instead of nil for compatibility with luaffi.