about summary refs log tree commit diff
path: root/src/libsyntax/lib.rs
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2013-09-16 19:30:28 -0700
committerDerek Guenther <dguenther9@gmail.com>2014-02-08 23:40:16 -0600
commitc1cc7e5f164b0119fcd60d6c9ade31fbfcff4b55 (patch)
treec773589dde45c66030ad5d99fb9ee03355bb2a8e /src/libsyntax/lib.rs
parentb66ec3483bd5081bcc829efb88ceb841189b754d (diff)
Add new syntax extension fourcc!()
fourcc!() allows you to embed FourCC (or OSType) values that are
evaluated as u32 literals. It takes a 4-byte ASCII string and produces
the u32 resulting in interpreting those 4 bytes as a u32, using either
the platform-native endianness, or explicitly as big or little endian.
Diffstat (limited to 'src/libsyntax/lib.rs')
-rw-r--r--src/libsyntax/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs
index 613416bed1c..5999cf0d8fe 100644
--- a/src/libsyntax/lib.rs
+++ b/src/libsyntax/lib.rs
@@ -95,6 +95,7 @@ pub mod ext {
     pub mod bytes;
     pub mod concat;
     pub mod concat_idents;
+    pub mod fourcc;
     pub mod log_syntax;
     pub mod source_util;