/** * Defines the given name as a macro. * * This is a convnience method. */ public void addMacro(String name, String value) throws LexerException { cpp.addMacro(name, value); }
/** * Defines the given name as a macro. * * This is a convnience method. */ public void addMacro(String name) throws LexerException { cpp.addMacro(name); }
/** * Defines the given name as a macro. * * This is a convnience method. */ public void addMacro(String name) throws LexerException { cpp.addMacro(name); }
/** * Defines the given name as a macro, with the value <code>1</code>. * * This is a convnience method, and is equivalent to * <code>addMacro(name, "1")</code>. */ public void addMacro(String name) throws LexerException { addMacro(name, "1"); }
/** * Defines the given name as a macro, with the value <code>1</code>. * * This is a convnience method, and is equivalent to * <code>addMacro(name, "1")</code>. */ public void addMacro(String name) throws LexerException { addMacro(name, "1"); }
/** * Defines the given name as a macro. * * This is a convnience method. */ public void addMacro(String name, String value) throws LexerException { cpp.addMacro(name, value); }
/** * Defines the given name as a macro. * * This is a convnience method. */ public void addMacro(@Nonnull String name) throws LexerException { cpp.addMacro(name); }
/** * Defines the given name as a macro, with the value <code>1</code>. * * This is a convnience method, and is equivalent to * <code>addMacro(name, "1")</code>. * * @throws LexerException if the definition fails or is otherwise illegal. */ public void addMacro(@Nonnull String name) throws LexerException { addMacro(name, "1"); }
/** * Defines the given name as a macro. * * This is a convnience method. */ public void addMacro(@Nonnull String name, @Nonnull String value) throws LexerException { cpp.addMacro(name, value); }
private void setupDefines() throws SoShaderException { for (final String name : this.defines.keySet()) { final String value = this.defines.get(name); if (LOG.isTraceEnabled()) { LOG.trace("define {} {}", name, value); } try { this.pp.addMacro(name, value); } catch (final LexerException e) { throw new SoShaderException(e); } } }
public void addMacro(Macro macro) { try { cpp.addMacro(macro.getName(), macro.getValue()); } catch (LexerException e) { throw new BuildException(e); } }
public void addMacro(Macro macro) { try { cpp.addMacro(macro.getName(), macro.getValue()); } catch (LexerException e) { throw new BuildException(e); } }
cpp.setListener(listener); for (Macro macro : macros) cpp.addMacro(macro.getName(), macro.getValue()); if (systemincludepath != null) cpp.setSystemIncludePath(Arrays.asList(systemincludepath.list()));
/** * Defines the given name as a macro. * * The String value is lexed into a token stream, which is * used as the macro expansion. * * @throws LexerException if the definition fails or is otherwise illegal. */ public void addMacro(@Nonnull String name, @Nonnull String value) throws LexerException { try { Macro m = new Macro(name); StringLexerSource s = new StringLexerSource(value); for (;;) { Token tok = s.token(); if (tok.getType() == EOF) break; m.addToken(tok); } addMacro(m); } catch (IOException e) { throw new LexerException(e); } }
preProcessor.addMacro(macro);
preProcessor.addMacro(macro);
pp.addWarning(Warning.IMPORT); pp.setListener(new PreprocessorListener()); pp.addMacro("__JCPP__"); pp.getSystemIncludePath().add("/usr/local/include"); pp.getSystemIncludePath().add("/usr/include"); idx = arg.indexOf('='); if (idx == -1) pp.addMacro(arg); else pp.addMacro(arg.substring(0, idx), arg.substring(idx + 1)); break;
/** * Defines the given name as a macro. * * The String value is lexed into a token stream, which is * used as the macro expansion. */ public void addMacro(String name, String value) throws LexerException { try { Macro m = new Macro(name); StringLexerSource s = new StringLexerSource(value); for (;;) { Token tok = s.token(); if (tok.getType() == EOF) break; m.addToken(tok); } addMacro(m); } catch (IOException e) { throw new LexerException(e); } }
/** * Defines the given name as a macro. * * The String value is lexed into a token stream, which is * used as the macro expansion. */ public void addMacro(String name, String value) throws LexerException { try { Macro m = new Macro(name); StringLexerSource s = new StringLexerSource(value); for (;;) { Token tok = s.token(); if (tok.getType() == EOF) break; m.addToken(tok); } addMacro(m); } catch (IOException e) { throw new LexerException(e); } }