class AdLint::Cpp::SpecialMacro
Attributes
replacement_list[R]
Public Class Methods
new(name_str)
click to toggle source
Calls superclass method
AdLint::Cpp::Macro::new
# File lib/adlint/cpp/macro.rb, line 437 def initialize(name_str) super(PseudoObjectLikeDefineLine.new(name_str)) @replacement_list = nil end
Public Instance Methods
expand(toks, macro_tbl, repl_ctxt)
click to toggle source
Calls superclass method
AdLint::Cpp::ObjectLikeMacro#expand
# File lib/adlint/cpp/macro.rb, line 444 def expand(toks, macro_tbl, repl_ctxt) @replacement_list = generate_replacement_list(toks.first) super end
Private Instance Methods
generate_replacement_list(tok)
click to toggle source
# File lib/adlint/cpp/macro.rb, line 450 def generate_replacement_list(tok) subclass_responsibility end