egeditor: more VaVoom C highlighting
[iv.d.git] / vfs / types.d
blobc89a0db05bc72a424f125f92c0204383dd2e7e6c
1 /* Invisible Vector Library
2 * coded by Ketmar // Invisible Vector <ketmar@ketmar.no-ip.org>
3 * Understanding is not required. Only obedience.
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 module iv.vfs.types /*is aliced*/;
19 public import iv.alice;
21 private import core.stdc.stdio : SEEK_SET, SEEK_CUR, SEEK_END;
22 public enum Seek : int {
23 Set = SEEK_SET,
24 Cur = SEEK_CUR,
25 End = SEEK_END,
29 public mixin template VFSHiddenPointerHelper(T, string name) {
30 mixin("
31 private usize hptr_"~name~"_;
32 final @property inout(T)* "~name~" () inout pure nothrow @trusted @nogc { pragma(inline, true); return cast(typeof(return))hptr_"~name~"_; }
33 final @property void "~name~" (T* v) pure nothrow @trusted @nogc { pragma(inline, true); hptr_"~name~"_ = cast(usize)v; }
34 ");