Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1514)

Unified Diff: src/utils/SkLua.cpp

Issue 16099014: enable shared lib support in linux for lua (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« gyp/skia_lib.gyp ('K') | « gyp/utils.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkLua.cpp
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
index 6754746033380fff8477244d8549fce7ab7d0555..ca9b61a6b422a2d5689cdf755b434ddf56bad0ff 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -924,3 +924,8 @@ void SkLua::Load(lua_State* L) {
REG_CLASS(L, SkRRect);
REG_CLASS(L, SkTypeface);
}
+
+extern "C" int luaopen_skia(lua_State* L) {
+ SkLua::Load(L);
+ return 0;
+}
« gyp/skia_lib.gyp ('K') | « gyp/utils.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698