checkpoint for real
This commit is contained in:
18
API.cs
18
API.cs
@@ -1,4 +1,18 @@
|
||||
$HEADER$namespace $NAMESPACE$
|
||||
using System;
|
||||
|
||||
namespace Foodsoft.Alpm
|
||||
{
|
||||
public class $CLASS$ {$END$}
|
||||
public static class API
|
||||
{
|
||||
public static readonly string Version = alpm.alpm_version();
|
||||
|
||||
internal static void WrapError(SafeAlpmHandle h, Func<int> f)
|
||||
{
|
||||
var err = f();
|
||||
if (err != 0)
|
||||
{
|
||||
throw new Exception(alpm.alpm_errno(h));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user