@@ -125,9 +125,12 @@ pub use lua_tables::LuaTable;
125125pub use lua_tables:: LuaTableIterator ;
126126pub use tuples:: TuplePushError ;
127127pub use userdata:: UserdataOnStack ;
128- pub use userdata:: { push_userdata, read_userdata} ;
128+ pub use userdata:: { push_userdata, read_userdata, push_some_userdata } ;
129129pub use values:: StringInLua ;
130130
131+ // Needed for `lua_error` macro
132+ pub use ffi:: luaL_error;
133+
131134mod any;
132135mod functions_write;
133136mod lua_functions;
@@ -369,7 +372,7 @@ pub trait PushOne<L>: Push<L> {}
369372
370373/// Type that cannot be instantiated.
371374///
372- /// Will be replaced with `!` eventually (https://github.com/rust-lang/rust/issues/35121).
375+ /// Will be replaced with `!` eventually (< https://github.com/rust-lang/rust/issues/35121> ).
373376#[ derive( Debug , Copy , Clone ) ]
374377pub enum Void { }
375378
@@ -520,7 +523,7 @@ impl<'lua> Lua<'lua> {
520523 /// Opens all standard Lua libraries.
521524 ///
522525 /// See the reference for the standard library here:
523- /// https://www.lua.org/manual/5.2/manual.html#6
526+ /// < https://www.lua.org/manual/5.2/manual.html#6>
524527 ///
525528 /// This is done by calling `luaL_openlibs`.
526529 ///
@@ -538,71 +541,71 @@ impl<'lua> Lua<'lua> {
538541
539542 /// Opens base library.
540543 ///
541- /// https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_base
544+ /// < https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_base>
542545 #[ inline]
543546 pub fn open_base ( & mut self ) {
544547 unsafe { ffi:: luaopen_base ( self . lua . 0 ) }
545548 }
546549
547550 /// Opens bit32 library.
548551 ///
549- /// https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_bit32
552+ /// < https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_bit32>
550553 #[ inline]
551554 pub fn open_bit ( & mut self ) {
552555 unsafe { ffi:: luaopen_bit ( self . lua . 0 ) }
553556 }
554557
555558 /// Opens debug library.
556559 ///
557- /// https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_debug
560+ /// < https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_debug>
558561 #[ inline]
559562 pub fn open_debug ( & mut self ) {
560563 unsafe { ffi:: luaopen_debug ( self . lua . 0 ) }
561564 }
562565
563566 /// Opens io library.
564567 ///
565- /// https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_io
568+ /// < https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_io>
566569 #[ inline]
567570 pub fn open_io ( & mut self ) {
568571 unsafe { ffi:: luaopen_io ( self . lua . 0 ) }
569572 }
570573
571574 /// Opens math library.
572575 ///
573- /// https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_math
576+ /// < https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_math>
574577 #[ inline]
575578 pub fn open_math ( & mut self ) {
576579 unsafe { ffi:: luaopen_math ( self . lua . 0 ) }
577580 }
578581
579582 /// Opens os library.
580583 ///
581- /// https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_os
584+ /// < https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_os>
582585 #[ inline]
583586 pub fn open_os ( & mut self ) {
584587 unsafe { ffi:: luaopen_os ( self . lua . 0 ) }
585588 }
586589
587590 /// Opens package library.
588591 ///
589- /// https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_package
592+ /// < https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_package>
590593 #[ inline]
591594 pub fn open_package ( & mut self ) {
592595 unsafe { ffi:: luaopen_package ( self . lua . 0 ) }
593596 }
594597
595598 /// Opens string library.
596599 ///
597- /// https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_string
600+ /// < https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_string>
598601 #[ inline]
599602 pub fn open_string ( & mut self ) {
600603 unsafe { ffi:: luaopen_string ( self . lua . 0 ) }
601604 }
602605
603606 /// Opens table library.
604607 ///
605- /// https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_table
608+ /// < https://www.lua.org/manual/5.2/manual.html#pdf-luaopen_table>
606609 #[ inline]
607610 pub fn open_table ( & mut self ) {
608611 unsafe { ffi:: luaopen_table ( self . lua . 0 ) }
0 commit comments