diff options
Diffstat (limited to 'org/ao_utils.org')
-rw-r--r-- | org/ao_utils.org | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/org/ao_utils.org b/org/ao_utils.org index 2c3e342..1cc3313 100644 --- a/org/ao_utils.org +++ b/org/ao_utils.org @@ -1,4 +1,4 @@ -#+TITLE: Emacs config file written in org-mode +#+TITLE: sdp utils #+AUTHOR: Ralph Amissah #+EMAIL: ralph.amissah@gmail.com #+STARTUP: indent @@ -9,10 +9,12 @@ #+OPTIONS: ^:nil _:nil#+OPTIONS: ^:nil _:nil #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport -#+TAGS: Amissah(A) Class(c) WEB(W) noexport(n) +#+FILETAGS: :sdp:ao: +#+TAGS: assert(a) class(c) debug(d) mixin(m) sdp(s) tangle(T) template(t) WEB(W) noexport(n) -* utils -** set colors for terminal +* utils :utils: +[[./sdp.org][sdp]] +** set colors for terminal :colors:terminal: #+name: ao_utils #+BEGIN_SRC d :exports none string[string] scr_txt_color = [ @@ -85,7 +87,20 @@ string[string] scr_txt_marker = [ ]; #+END_SRC -* tangles +* code snippets, use as needed :code:snippet:debug: +** called from +#+BEGIN_SRC d :tangle no :exports none +string functionName = __FUNCTION__, +string file = __FILE__, +size_t line = __LINE__) { +writefln("Called from function %s at file %s, line %s", + functionName, file, line); +#+END_SRC :tangle no +#+BEGIN_SRC d :exports none +writefln("Inside function %s at file %s, line %s", + __FUNCTION__, __FILE__, __LINE__); +#+END_SRC +* tangles :tangle: ** code structure: :ao_util.d: #+name: tangle_ao_utils #+BEGIN_SRC d :tangle ../lib/sdp/ao_utils.d :padline no :exports none :noweb yes |