@@ -125,9 +125,12 @@ pub use lua_tables::LuaTable;
125
125
pub use lua_tables:: LuaTableIterator ;
126
126
pub use tuples:: TuplePushError ;
127
127
pub use userdata:: UserdataOnStack ;
128
- pub use userdata:: { push_userdata, read_userdata} ;
128
+ pub use userdata:: { push_userdata, read_userdata, push_some_userdata } ;
129
129
pub use values:: StringInLua ;
130
130
131
+ // Needed for `lua_error` macro
132
+ pub use ffi:: luaL_error;
133
+
131
134
mod any;
132
135
mod functions_write;
133
136
mod lua_functions;
@@ -369,7 +372,7 @@ pub trait PushOne<L>: Push<L> {}
369
372
370
373
/// Type that cannot be instantiated.
371
374
///
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> ).
373
376
#[ derive( Debug , Copy , Clone ) ]
374
377
pub enum Void { }
375
378
@@ -520,7 +523,7 @@ impl<'lua> Lua<'lua> {
520
523
/// Opens all standard Lua libraries.
521
524
///
522
525
/// 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>
524
527
///
525
528
/// This is done by calling `luaL_openlibs`.
526
529
///
@@ -538,71 +541,71 @@ impl<'lua> Lua<'lua> {
538
541
539
542
/// Opens base library.
540
543
///
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>
542
545
#[ inline]
543
546
pub fn open_base ( & mut self ) {
544
547
unsafe { ffi:: luaopen_base ( self . lua . 0 ) }
545
548
}
546
549
547
550
/// Opens bit32 library.
548
551
///
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>
550
553
#[ inline]
551
554
pub fn open_bit ( & mut self ) {
552
555
unsafe { ffi:: luaopen_bit ( self . lua . 0 ) }
553
556
}
554
557
555
558
/// Opens debug library.
556
559
///
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>
558
561
#[ inline]
559
562
pub fn open_debug ( & mut self ) {
560
563
unsafe { ffi:: luaopen_debug ( self . lua . 0 ) }
561
564
}
562
565
563
566
/// Opens io library.
564
567
///
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>
566
569
#[ inline]
567
570
pub fn open_io ( & mut self ) {
568
571
unsafe { ffi:: luaopen_io ( self . lua . 0 ) }
569
572
}
570
573
571
574
/// Opens math library.
572
575
///
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>
574
577
#[ inline]
575
578
pub fn open_math ( & mut self ) {
576
579
unsafe { ffi:: luaopen_math ( self . lua . 0 ) }
577
580
}
578
581
579
582
/// Opens os library.
580
583
///
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>
582
585
#[ inline]
583
586
pub fn open_os ( & mut self ) {
584
587
unsafe { ffi:: luaopen_os ( self . lua . 0 ) }
585
588
}
586
589
587
590
/// Opens package library.
588
591
///
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>
590
593
#[ inline]
591
594
pub fn open_package ( & mut self ) {
592
595
unsafe { ffi:: luaopen_package ( self . lua . 0 ) }
593
596
}
594
597
595
598
/// Opens string library.
596
599
///
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>
598
601
#[ inline]
599
602
pub fn open_string ( & mut self ) {
600
603
unsafe { ffi:: luaopen_string ( self . lua . 0 ) }
601
604
}
602
605
603
606
/// Opens table library.
604
607
///
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>
606
609
#[ inline]
607
610
pub fn open_table ( & mut self ) {
608
611
unsafe { ffi:: luaopen_table ( self . lua . 0 ) }
0 commit comments