add Lua binding

This commit is contained in:
Chris Danford
2005-12-06 12:39:43 +00:00
parent dfad0b0a75
commit 8fda004742
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -1596,6 +1596,8 @@ CString Basename( const CString &dir )
return dir.substr( start, end-start+1 );
}
LuaFunction( Basename, Basename( SArg(1) ) )
/* Return all but the last named component of dir:
* a/b/c -> a/b/
* a/b/c/ -> a/b/