Browse Source

Escape C# strings correctly

The strings in the example code are not escaped correctly.  If a user was to paste this code into a demo app it would not compile
pull/1277/head
benjaminZale 6 years ago committed by Joao Matos
parent
commit
9121d86a00
  1. 4
      docs/GeneratingBindings.md

4
docs/GeneratingBindings.md

@ -77,9 +77,9 @@ void Setup(Driver driver) @@ -77,9 +77,9 @@ void Setup(Driver driver)
var options = driver.Options;
options.GeneratorKind = GeneratorKind.CSharp;
var module = options.AddModule("Sample");
module.IncludeDirs.Add("C:\Sample\include");
module.IncludeDirs.Add(@"C:\Sample\include");
module.Headers.Add("Sample.h");
module.LibraryDirs.Add("C:\Sample\lib");
module.LibraryDirs.Add(@"C:\Sample\lib");
module.Libraries.Add("Sample.lib");
}
```

Loading…
Cancel
Save