Skip to content

Commit

Permalink
Merge pull request #36 from koreader/houqp-master
Browse files Browse the repository at this point in the history
fix load error logging
  • Loading branch information
chrox committed Feb 26, 2016
2 parents cc5c302 + 435277e commit 08f23b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
apk:

apk: local.properties
git submodule init
git submodule sync
git submodule update
android update project --path .
./mk-luajit.sh armeabi-v7a
ndk-build
ant debug

local.properties:
android update project --path .

dev: apk
ant dev
6 changes: 3 additions & 3 deletions assets/dl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ local dl = {
local function sys_dlopen(library)
local p = ffi.C.dlopen(library, ffi.C.RTLD_LOCAL)
if p == nil then
local error = ffi.C.dlerror()
if error ~= nil then
error("error opening "..library..": "..ffi.string(error))
local err_msg = ffi.C.dlerror()
if err_msg ~= nil then
error("error opening "..library..": "..ffi.string(err_msg))
end
end
return p
Expand Down

0 comments on commit 08f23b8

Please sign in to comment.