mirror of
https://github.com/servo/servo.git
synced 2025-07-16 03:43:38 +01:00
style: Document a few more macros.
This commit is contained in:
parent
f2d6e07aa0
commit
8101539c0a
2 changed files with 3 additions and 0 deletions
|
@ -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}\
|
||||
|
|
|
@ -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 {
|
||||
() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue