Bug 1519629 - Document a few more macros.

This commit is contained in:
Emilio Cobos Álvarez
2019-01-13 21:42:38 +01:00
parent f43c952004
commit 288f13c0ee
2 changed files with 3 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ RULE_TEMPLATE = '''
'''[1:]
MACRO_TEMPLATE = '''
/// Returns a static atom by passing the literal string it represents.
#[macro_export]
macro_rules! atom {{
{body}\

View File

@@ -11,6 +11,8 @@ use std::borrow::Borrow;
use std::fmt;
use std::ops::Deref;
/// In Gecko namespaces are just regular atoms, so this is a simple macro to
/// forward one macro to the other.
#[macro_export]
macro_rules! ns {
() => {