mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
Add crash utility to CalamaresUtils.
This commit is contained in:
parent
391b52427a
commit
e59418e880
2 changed files with 10 additions and 0 deletions
|
@ -329,4 +329,12 @@ obscure( const QString& string )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
crash()
|
||||||
|
{
|
||||||
|
volatile int* a = (int*)(NULL);
|
||||||
|
*a = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,6 +54,8 @@ namespace CalamaresUtils
|
||||||
DLLEXPORT QString removeDiacritics( const QString& string );
|
DLLEXPORT QString removeDiacritics( const QString& string );
|
||||||
|
|
||||||
DLLEXPORT QString obscure( const QString& string );
|
DLLEXPORT QString obscure( const QString& string );
|
||||||
|
|
||||||
|
DLLEXPORT void crash();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // CALAMARESUTILS_H
|
#endif // CALAMARESUTILS_H
|
||||||
|
|
Loading…
Add table
Reference in a new issue