×

Compiling Alternative Source Code Based on a Metafunction

  • US 20070250825A1
  • Filed: 04/21/2006
  • Published: 10/25/2007
  • Est. Priority Date: 04/21/2006
  • Status: Abandoned Application
First Claim
Patent Images

1. A method comprising:

  • replacing a call of a function in source code with a body of the function inline in the source code, wherein the body of the function comprises a call to a metafunction, first alternative source code, and second alternative source code;

    evaluating the metafunction during compilation of the source code to determine whether a compile-time environment attribute of the source code is true; and

    if the compile-time environment attribute is true, compiling the first alternative source code into object code, wherein the first alternative source code relies on truth of the compile-time environment attribute.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×