class AdLint::Cpp::FileMacro
Public Class Methods
new()
click to toggle source
Calls superclass method
AdLint::Cpp::SpecialMacro::new
# File lib/adlint/cpp/macro.rb, line 469 def initialize super("__FILE__") end
Private Instance Methods
generate_replacement_list(tok)
click to toggle source
# File lib/adlint/cpp/macro.rb, line 474 def generate_replacement_list(tok) PPTokens.new.push( Token.new(:PP_TOKEN, "\"#{tok.location.fpath}\"", tok.location, :STRING_LITERAL)) end